Update Day 25_Decision_Tree.md

This commit is contained in:
wengJJ
2018-09-06 22:11:27 +08:00
committed by GitHub
parent 86a245f9d7
commit 08ccc94638

View File

@ -18,7 +18,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)
```