What is the significance of random_state =42 and random_state=85? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What is the significance of random_state =42 and random_state=85?

20th Feb 2020, 12:19 PM
Drishti Sharma
Drishti Sharma - avatar
3 Answers
+ 2
Where did you get this. Can you share any link.
20th Feb 2020, 12:31 PM
A͢J
A͢J - avatar
0
Actually, this question is there in my assignment and then I googled it a bit. Information which I got as of now is as follows- random_state simply sets a seed to the random generator, so that train_test_split output is always deterministic... If we don't seed , the output is different each time. This I got.. but my concern is why particularly 42/85 ? Also, on site it was mentioned that random_state=42 is used in many official examples of scikit learn
20th Feb 2020, 12:39 PM
Drishti Sharma
Drishti Sharma - avatar
0
As of now am testing out the linear model plot using different values of random_state to see if these number (42/85) are improving the fitting of the data.
20th Feb 2020, 12:40 PM
Drishti Sharma
Drishti Sharma - avatar