30. The Machine Learning Workflow Step by Step
30.1 The Five Steps: Data, Features, Train, Evaluate, Predict
Why. Beginners jump to “fit a model”. Pros walk five steps every time. If you skip a step, Pune ops will not trust the output.
What. The beginner workflow we use in this course:
- Data — collect and clean rows.
- Features — choose input columns (X).
- Train — learn patterns on the training part.
- Evaluate — check quality on held-out data.
- Predict — score new rows in production or a notebook.
How.
Say the five steps aloud
- Write them on paper in order.
- Circle which step you are on before every Jupyter cell.
- Do not evaluate on the same rows you trained on (Chapter 31 explains why).
- Prediction comes last — after you trust evaluate.
steps = ["data", "features", "train", "evaluate", "predict"]
for i, s in enumerate(steps, start=1):
print(f"{i}. {s}")
Ravindra Bagale's Tip
Write the five workflow steps on a paper and stick it on your wall: data, features, train, evaluate and predict. Even when you change the model, these steps stay the same. Follow them in this order for every project.
Ravindra Bagale's Tip – मराठी
Workflow च्या पाच steps एका कागदावर लिहा आणि भिंतीवर चिकटवा: data, features, train, evaluate आणि predict. तुम्ही model बदललं तरी या steps तशाच राहतात. प्रत्येक project मध्ये याच क्रमाने त्या पाळा.
Ravindra Bagale's Tip – हिंदी
Workflow के पाँच steps एक कागज़ पर लिखो और दीवार पर चिपका दो: data, features, train, evaluate और predict. Model बदलने पर भी ये steps वही रहते हैं. हर project में इन्हें इसी क्रम में follow करो.