Update Day 6_Logistic_Regression.md

This commit is contained in:
wengJJ
2018-09-06 22:30:49 +08:00
committed by GitHub
parent 66d7fa1ef1
commit 68a8ac5d37

View File

@ -31,7 +31,7 @@ Y = dataset.iloc[:,4].values
#### 将数据集分成训练集和测试集
```python
from sklearn.cross_validation import train_test_split
from sklearn.model_selection import train_test_split
X_train, X_test, y_train, y_test = train_test_split(X, Y, test_size = 0.25, random_state = 0)
```