質問編集履歴
1
誤字
title
CHANGED
File without changes
|
body
CHANGED
@@ -8,7 +8,7 @@
|
|
8
8
|
X = csv_titanic[["Age"],["Fare"]]
|
9
9
|
y = csv_titanic["Survived"]
|
10
10
|
|
11
|
-
X_train,X_test,
|
11
|
+
X_train,X_test,y_train, y_test=train_test_split(X, y, stratify=y, random_state = 0 )
|
12
12
|
|
13
13
|
print(y_train.value_counts())
|
14
14
|
print(y_test.value_counts())
|