Case File: An Honest Split
A model that is graded on the data it learned from will always look good. Split the trips into a training part and a test part in time order, measure the error on both, and see how a leak (letting the test rows influence the guess) flatters the result. Real pandas, on data generated for you alone.
Case File: An Honest Split
A model that is graded on the data it learned from will always look good. Split the trips into a training part and a test part in time order, measure the error on both, and see how a leak (letting the test rows influence the guess) flatters the result. Real pandas, on data generated for you alone.
In this lesson:
- machine-learning
- train-test-split
- data-leakage
- generalisation
- python
- pandas
- case-file
This lesson is part of a paid plan
Upgrade to Pro to unlock this course, its labs and its exam.
View Pricing Plans