fqj-kylin
9/20/2017 - 7:43 AM

划分数据集

划分数据集

from sklearn.cross_validation import train_test_split
X_train, X_test, y_train, y_test = train_test_split(X, y, random_state=1)