fix 2 bugs in Day 6_Logistic_Regression.md

This commit is contained in:
yyong119
2018-08-09 08:40:43 +08:00
parent e1d7c6ca26
commit cc73c7e4d9

View File

@ -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)
```
#### 特征缩放