Introduction
We split data into training and testing parts to teach the model and then check how well it learned on new data.
When you want to check if your model can predict new data well.
Before training a model to avoid cheating by testing on the same data it learned from.
When you have a dataset and want to measure model accuracy honestly.
To compare different models fairly using the same test data.
When tuning model settings and needing a reliable way to see improvements.