29 views
As someone new to python. can anyone tell me why we set random state to zero in splitting train and test set. I'm kind of new to python. can anyone tell me why we set random state to zero in splitting train and test set. X_train, X_test, y_train, y_test ... , y_test = \ train_test_split(X, y, test_size=0.30, random_state=1) What is the consequence of this random state in cross validation as well?
asked
Oct 27, 2020
psandprop
2.4k points