Does it matter if I set random_state same for RandomForestClassifier() and train_test_split()?

时间:2015-05-12 23:38:52

标签: python scikit-learn

In sciki learn, import time for k in range(1,100): print(str(k)+"/"+"100") time.sleep(0.03) #>> Clear the most recent line printed to the console print("ready or not here I come!") and RandomForestClassifier() both have train_test_split() parameter.

Statistically, does it matter if I set them to be the same seed? Will that be wrong? Thanks.

1 个答案:

答案 0 :(得分:1)

设置相同的种子没有错。