Discussion Forum | Board Infinity

Random state

can anyone help me with random state number in regression,why is it used?

Random state ensures that the splits that you generate are reproducible. Scikit-learn uses random permutations to generate the splits. The random state that you provide is used as a seed to the random number generator. This ensures that the random numbers are generated in the same order. pls go thru the links below
https://scikit-learn.org/stable/modules/generated/sklearn.model_selection.train_test_split.html

1 Like