Update Day 13_SVM.py

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

View File

@ -11,7 +11,7 @@ X = dataset.iloc[:, [2, 3]].values
y = dataset.iloc[:, 4].values
#Splitting the dataset into the Training set and Test set
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)
#Feature Scaling