守着星空守着你
但是,有一种方法可以将数据集划分为train, test, cv带着0.6, 0.2, 0.2将使用train_test_split方法两次。from sklearn.model_selection import train_test_split
x, x_test, y, y_test = train_test_split(xtrain,labels,test_size=0.2,train_size=0.8)x_train, x_cv, y_train, y_cv = train_test_split(x,y,test_size = 0.25,train_size =0.75)