scikit-learn random state in splitting dataset

后端 未结 9 1941
无人共我
无人共我 2020-12-05 09:12

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 = \\
    train_test_split(X, y, test_size         


        
9条回答
  •  萌比男神i
    2020-12-05 10:10

    We used the random_state parameter for reproducibility of the initial shuffling of training datasets after each epoch.

提交回复
热议问题