0
why random_state=22???
why the value of the random state is assigned to 22? To avoid shuffle of data set during splitting for test & train data-set. X_train, X_test, y_train, y_test = train_test_split(X, y, random_state=22)
3 Answers
+ 3
try to tag the language and share the code youre having trouble with. It'll make it a lot easier to help
+ 3
"To avoid shuffle of data set during splitting for test and train data-set"! ,Are you answering yourself?
Anyway here I got I useful link
https://stackoverflow.com/questions/42191717/JUMP_LINK__&&__python__&&__JUMP_LINK-random-state-in-splitting-dataset
0
I hope now you can get it!