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)

25th Jul 2020, 8:48 AM
Abhishek Kumar
Abhishek Kumar - avatar
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
25th Jul 2020, 8:50 AM
Slick
Slick - avatar
+ 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
25th Jul 2020, 9:08 AM
Abhay
Abhay - avatar
0
I hope now you can get it!
25th Jul 2020, 9:04 AM
Abhishek Kumar
Abhishek Kumar - avatar