回答編集履歴
1
追加
test
CHANGED
@@ -1,4 +1,8 @@
|
|
1
|
+
scikit-learnを使っている前提で答えますが,
|
2
|
+
|
1
3
|
```:py
|
4
|
+
|
5
|
+
X_train, X_test, Y_train, Y_test = train_test_split(data_set, data_ofj, test_size=0.3)
|
2
6
|
|
3
7
|
clf.fit(X_train, Y_train)
|
4
8
|
|