Update Day 13_SVM.md

This commit is contained in:
wengJJ
2018-09-06 21:54:09 +08:00
committed by GitHub
parent 2a743c6d34
commit 33760a2b0c

View File

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