From cc73c7e4d915c4aa1b066e75f3ac528c49b4694e Mon Sep 17 00:00:00 2001 From: yyong119 Date: Thu, 9 Aug 2018 08:40:43 +0800 Subject: [PATCH] fix 2 bugs in Day 6_Logistic_Regression.md --- Code/Day 6_Logistic_Regression.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Code/Day 6_Logistic_Regression.md b/Code/Day 6_Logistic_Regression.md index e951c95..af85f0e 100644 --- a/Code/Day 6_Logistic_Regression.md +++ b/Code/Day 6_Logistic_Regression.md @@ -28,11 +28,11 @@ X = dataset.iloc[:, [2, 3]].values Y = dataset.iloc[:,4].values ``` -#### 讲数据集分成训练集和测试集 +#### 将数据集分成训练集和测试集 ```python from sklearn.cross_validation import train_test_split -X_train, X_test, y_train, y_test = train_test_split(X, y, test_size = 0.25, random_state = 0) +X_train, X_test, y_train, y_test = train_test_split(X, Y, test_size = 0.25, random_state = 0) ``` #### 特征缩放