Apr-23-2020, 04:31 PM
Hey everyone,
Could someone better explain train_test_split and what it's actually doing?
So from my understanding:
Could someone better explain train_test_split and what it's actually doing?
So from my understanding:
X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.33)When you give TTS an X variable, that is the dataset and y is what you are trying to predict, correct? And TTS will split up your dataset and assign the variables X_train, X_test, y_train, and y_test at its own will to train the dataset? And the test size is how big the test sampling will be from your dataset to test on? Or am I completely off the mark?