📅  最后修改于: 2022-03-11 14:58:12.438000             🧑  作者: Mango
# split X and y into training and testing sets
from sklearn.cross_validation import train_test_split
X_train, X_test, y_train, y_test = train_test_split(X, y, random_state=0)