Show what stratify buys you
Machine Learning · from Train and test
train_test_splitstratifyrandom_statetest_sizeTimeSeriesSplitGroupKFoldPutting the kettle on…
Starting up…
Exercise 2
Show what stratify buys you. Split twice at random_state=0 — once without it, once with — and return the two test-set late rates as a list, each rounded to 4 places.
your answer
stuck? the lesson behind it
Train and test
Hold rows back, look at them once — and know how much luck is in the number