Why does my sklearn.model_selection.train_test_split()
returns same samples of X_train
, X_test
, y_train
, y_test
each time I run the code, even though I have kept shuffle=True
, and I have not manually defined the seed value?
I am printing the samples like this:
X_train, X_test, y_train, y_test = train_test_split(x, y, test_size = 0.3, random_state = 100, shuffle=True)
print (y_test)