Update Day 1_Data_Preprocessing.md

This commit is contained in:
wengJJ
2018-09-06 22:00:03 +08:00
committed by GitHub
parent 52c7628f7c
commit 054df26c99

View File

@ -41,7 +41,7 @@ Y = labelencoder_Y.fit_transform(Y)
```
## 第5步拆分数据集为训练集合和测试集合
```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.2, random_state = 0)
```
## 第6步特征量化