train_test_split without shuffle 1

train_test_split without shuffle

from sklearn.model_selection import train_test_split
train_test_split(X, y, test_size=0.2, shuffle=False)

Here is what the above code is Doing:
1. We are splitting the data into 80% training and 20% testing.
2. We are not shuffling the data.
3. We are splitting the data into 4 variables: X_train, X_test, y_train, y_test.

Similar Posts