Ravindra BagaleCourses & study guides मराठी Track your progress

30. The Machine Learning Workflow Step by Step

Data Science

30.4 Common Workflow Mistakes Beginners Make

Why. Most beginner pain is workflow, not maths.

What / How — common mistakes

Avoid these

  1. Train on all rows, then “test” on the same rows. Scores look perfect; real life fails. Fix: Chapter 31 split.
  2. Skip cleaning. Garbage features → confident wrong guesses.
  3. Change the label definition halfway. “Late” was 20 minutes, then silently 30.
  4. Leak future columns. Using “actual delivery minutes” as a feature to predict lateness (Chapter 32 leakage).
  5. Ship without evaluate. Demo on one happy row is not evaluate.
# Bad vs better habit (pseudo checklist)
bad = ["fit on all rows", "no clean step", "label changed quietly"]
better = ["split first", "clean then features", "write label definition in notebook"]
print("Avoid:", bad)
print("Prefer:", better)

Ravindra Bagale's Tip

A common mistake is to see 99% accuracy in the notebook and then watch the model fail in real use (production). This usually happens because the data was never split, or the model was never checked on test data. Always split the data and evaluate the model before you trust the score.