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

后端 未结 6 2151
鱼传尺愫
鱼传尺愫 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:15

    When the Random_state is not defined in the code for every run train data will change and accuracy might change for every run. When the Random_state = " constant integer" is defined then train data will be constant For every run so that it will make easy to debug.

提交回复
热议问题