What is “random-state” in sklearn.model_selection.train_test_split example?

后端 未结 6 2142
鱼传尺愫
鱼传尺愫 2020-12-14 10:47

I am really new to machine learning,i was going through some example on sklearn

Can someone explain me what really \"Random-state\" means in below e

6条回答
  •  执念已碎
    2020-12-14 11:10

    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.

提交回复
热议问题