Name: Towards AI Legal Name: Towards AI, Inc. Description: Towards AI is the world's leading artificial intelligence (AI) and technology publication. Read by thought-leaders and decision-makers around the world. Phone Number: +1-650-246-9381 Email: [email protected]
228 Park Avenue South New York, NY 10003 United States
Website: Publisher: https://towardsai.net/#publisher Diversity Policy: https://towardsai.net/about Ethics Policy: https://towardsai.net/about Masthead: https://towardsai.net/about
Name: Towards AI Legal Name: Towards AI, Inc. Description: Towards AI is the world's leading artificial intelligence (AI) and technology publication. Founders: Roberto Iriondo, , Job Title: Co-founder and Advisor Works for: Towards AI, Inc. Follow Roberto: X, LinkedIn, GitHub, Google Scholar, Towards AI Profile, Medium, ML@CMU, FreeCodeCamp, Crunchbase, Bloomberg, Roberto Iriondo, Generative AI Lab, Generative AI Lab Denis Piffaretti, Job Title: Co-founder Works for: Towards AI, Inc. Louie Peters, Job Title: Co-founder Works for: Towards AI, Inc. Louis-François Bouchard, Job Title: Co-founder Works for: Towards AI, Inc. Cover:
Towards AI Cover
Logo:
Towards AI Logo
Areas Served: Worldwide Alternate Name: Towards AI, Inc. Alternate Name: Towards AI Co. Alternate Name: towards ai Alternate Name: towardsai Alternate Name: towards.ai Alternate Name: tai Alternate Name: toward ai Alternate Name: toward.ai Alternate Name: Towards AI, Inc. Alternate Name: towardsai.net Alternate Name: pub.towardsai.net
5 stars – based on 497 reviews

Frequently Used, Contextual References

TODO: Remember to copy unique IDs whenever it needs used. i.e., URL: 304b2e42315e

Resources

Take our 85+ lesson From Beginner to Advanced LLM Developer Certification: From choosing a project to deploying a working product this is the most comprehensive and practical LLM course out there!

Publication

4 Common Pitfalls When Building Machine Learning Model
Latest

4 Common Pitfalls When Building Machine Learning Model

Last Updated on July 3, 2022 by Editorial Team

Author(s): Gencay I.

Originally published on Towards AI the World’s Leading AI and Technology News and Media Company. If you are building an AI-related product or service, we invite you to consider becoming an AI sponsor. At Towards AI, we help scale AI and technology startups. Let us help you unleash your technology to the masses.

Most Common Issues When Building a Machine LearningΒ Model

Photo by charlesdeluvio onΒ Unsplash
Contents
Β· Introduction
∘ 1. Is your source up to date?
∘ Solution
∘ 2. Not Enough Data?
∘ Solution
∘ 3. Is Aristotle right about quality?
∘ Solution
∘ 4. Can your model be perfect?
∘ Solution
Β· Conclusion

Introduction

When building a Machine Learning Model for your company, for your portfolio, or for fun, there are some steps to take. And there are some other things you should avoid to increase your model accuracy. In this article, I try to warn you about 4 Common Pitfalls, when building a machine learning model. Although tons of cautions, you should take, while applying Machine Learning Model, when you avoid doing these steps, your model will beΒ okay.

1. Is your source up toΒ date?

Photo by Markus Winkler onΒ Unsplash

These days, when building machine learning, it is common to find sourcesΒ online.

Like in GitHub pages or course materials.

Generally, that is a self-evolving process but sometimes you have to be careful aboutΒ that.

Sometimes, online documentation can be updated according to the version changes, but if you looked at the codes from outdated documents or Github pages, that could result in you doing the debugging process.

That means, the function name or arguments might change, sometimes even the name of the function can beΒ changed.

Solution

To avoid these problems, I always look at the date of the source I amΒ reading.

After that, check the library version in that article and compare it with the currentΒ one.

For example, if you are coding in Python and you are using Scikit Learn, it would be good to check the Scikit-learn release historyΒ here.

2. Not EnoughΒ Data?

Photo by Markus Spiske onΒ Unsplash

Does More Data AlwaysΒ Better?

Simple but important.

Most of the time more data would beΒ better.

It is not the only way of improving your Machine Learning model’s performance.

Solution

On the other hand, research shows, that more data would be better most of theΒ time.

Sometimes, adding more data may increase the cost, on the other hand, it would increase your model's performance too as shown in Andrew Ng’s graphΒ below;

Reference: Deep LearningΒ AI

3. Is Aristotle right aboutΒ quality?

Photo by Alex Shute onΒ Unsplash

β€œQuality is not an act it is aΒ habit.”

Aristotle

Actually, I assume if Aristotle would live in that era, he will be a great Data Scientist.

Data Quality is very important when you build a Machine LearningΒ model.

Especially, if your model is used in production.

However, sometimes, things can go out of yourΒ control.

Especially when your model is in production.

Solution

If you want to build that habit, you should check your incoming data frequently to avoid bad incomingΒ data.

Moreover, setting limits to your incoming data would prevent bad incoming data and that will guard your model efficiency.

4. Can your model beΒ perfect?

Photo by Vitolda Klein onΒ Unsplash

Let’s be straightforward, no.

Chasing perfection can be a great thing but not in Machine Learning.

In machine learning it might be a motivation killer for you and also would cause overfitting.

What does overfitting mean?

Overfitting means simply your model is way perfect, so it is too good to beΒ true.

β€œPerfection is the enemy of progress.”

Winston Churchill

Solution

To avoid overfitting, one thing to do is to simplify yourΒ model.

By dimension reduction or feature engineering, you can easily be simplifying your model and overcome overfitting.

Conclusion

Photo by Robynne Hu onΒ Unsplash

The era we are in is really interesting.

Daily improvements change the way of living of humanity.

Machine Learning and its applications are really important in thatΒ aspect.

Let's look at the Real-life machine learning applications quickly;

  • Face Recognition- These days even our mobile phones use thisΒ tech.
  • Speech Recognition- Siri is a famousΒ example.
  • Recommender System- Mostly known on Netflix, you may like this filmΒ too.

And machine Learning comes into almost every cutting-edge businessΒ space;

  • Healthcare– Detecting Tumors
  • Finance– Predicting StockΒ Prices
  • Law– ConsumerΒ Analysis

And manyΒ more.

So independent from your business space, in my opinion, either you across with Machine Learning or you will be in the near future and one stepΒ forward;

β€œMachine learning is the last invention that humanity will ever need to make.” NickΒ Bostrom

Thanks for reading myΒ article.


4 Common Pitfalls When Building Machine Learning Model was originally published in Towards AI on Medium, where people are continuing the conversation by highlighting and responding to this story.

Join thousands of data leaders on the AI newsletter. It’s free, we don’t spam, and we never share your email address. Keep up to date with the latest work in AI. From research to projects and ideas. If you are building an AI startup, an AI-related product, or a service, we invite you to consider becoming aΒ sponsor.

Published via Towards AI

Feedback ↓