sklearnを使っているのですが、
train_test_splitを使って、データを検証用とテスト用に分類したいのですが、「stratify=cancer.target, random_state=66」が何を表しているのかわかりません。
random_stateはランダムに訓練用とテストように分けてくれるのもだと思いますが、「=66」は何を表しているのでしょうか?
X_train, X_test, y_train, y_test = train_test_split( cancer.data, cancer.target, stratify=cancer.target, random_state=66)
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/11/06 07:19
2017/11/06 07:38
2017/11/06 10:38