Five years of machine learning projects taught me hard lessons. Learn the common pitfalls in ML projects and how to avoid them.

By Meng Li

Published: 2026-09-29

URL: https://pythonlibraries.substack.com/p/machine-learning-projects-from-0


I’ve been doing machine learning projects for more than five years. Looking back, the pitfalls I’ve stepped into could fill a pond.

Some of those pitfalls were technical, some were about process, and some were about communication. Today I’m writing these lessons down, hoping they can help you take fewer detours.

Starting without understanding the business

This is the biggest pitfall, bar none.

When I first entered the field, my boss asked me to build a customer churn prediction model. I got the data and immediately started feature engineering and tuning model parameters. After two weeks, I had the accuracy up to 93%.

I presented it to my boss with full confidence. Then he asked: “For the customers you predict will churn, how do we retain them?”

I froze. I had only thought about prediction, not about what happens next.

Later I learned that the business team already had a customer classification standard. What they needed was not a churn prediction model, but a system that could identify different reasons for churn and give targeted recommendations.

That experience taught me: in a machine learning project, the first step is not looking at the data—it’s understanding the business.

You need to get clear answers to these questions:

What is the business goal? Not “build a model,” but what problem are we solving, and what value will it create?

What is the current solution? How do people do it manually? What are the limitations?

What does success look like? What accuracy is required? How much error is acceptable?

What is the expected impact after launch? How much cost can it save? How much efficiency can it improve?