30. The Machine Learning Workflow Step by Step
30.4 Common Workflow Mistakes Beginners Make
Why. Most beginner pain is workflow, not maths.
What / How — common mistakes
Avoid these
- Train on all rows, then “test” on the same rows. Scores look perfect; real life fails. Fix: Chapter 31 split.
- Skip cleaning. Garbage features → confident wrong guesses.
- Change the label definition halfway. “Late” was 20 minutes, then silently 30.
- Leak future columns. Using “actual delivery minutes” as a feature to predict lateness (Chapter 32 leakage).
- 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.
Ravindra Bagale's Tip – मराठी
एक नेहमीची चूक: notebook मध्ये 99% accuracy दिसते, पण production मध्ये, म्हणजे खऱ्या वापरात, model फसतं. असं सहसा तेव्हा होतं जेव्हा data split केलेला नसतो किंवा model test data वर तपासलेलं नसतं. Score वर विश्वास ठेवण्याआधी नेहमी data split करा आणि model evaluate करा.
Ravindra Bagale's Tip – हिंदी
एक आम गलती: notebook में 99% accuracy दिखती है, लेकिन production यानी असली इस्तेमाल में model fail हो जाता है. ऐसा आमतौर पर तब होता है जब data split नहीं किया गया हो या model को test data पर जाँचा न गया हो. Score पर भरोसा करने से पहले हमेशा data split करो और model evaluate करो.