I am a little new to python. can anyone tell me why we set the random state to zero in splitting the train and test suite.
X_train, X_test, y_train, y_test = \
train_test_split(X, y, test_size=0.30, random_state=0)
I saw situations like this when a random state is set to unity!
X_train, X_test, y_train, y_test = \
train_test_split(X, y, test_size=0.30, random_state=1)
What is the consequence of this random state during cross-validation?
source
share