30. Machine Learning Workflow पाऊल-पाऊल
30.4 Beginners च्या सामान्य workflow चुका
का. Beginners ची बहुतेक त्रास workflow ची असते, maths ची नाही.
काय / कसे — सामान्य चुका
या टाळा
- सर्व rows वर train करून त्याच rows वर “test”. Scores परिपूर्ण दिसतात; खरे जग अपयशी. Fix: Chapter 31 split.
- Cleaning skip करणे. Garbage features → आत्मविश्वासाने चुकीचे अंदाज.
- मधल्यामध्ये label ची व्याख्या बदलणे. “Late” 20 minutes होते, मग शांतपणे 30.
- Future columns leak करणे. Lateness predict करायला feature म्हणून “actual delivery minutes” वापरणे (Chapter 32 leakage).
- Evaluate शिवाय ship करणे. एका सुखी row वर demo म्हणजे 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 करो.