Split X and y with test_size=0.25, stratify=y and random_state=0
Machine Learning · from Train and test
train_test_splitstratifyrandom_statetest_sizeTimeSeriesSplitGroupKFoldPutting the kettle on…
Starting up…
Exercise 1
Split X and y with test_size=0.25, stratify=y and random_state=0. Return [list(X_train.shape), list(X_test.shape)].
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