sklearn
from sklearn import train_test_split train_X,test_X,train_y,test_y = train_test_split(X,y,test_size=1/3,random_state=3)
from sklearn import cross_val_score
原文:https://www.cnblogs.com/pandas-blue/p/11708500.html