📅  最后修改于: 2022-03-11 14:45:10.412000             🧑  作者: Mango
import sklearn.model_selection as model_selectionX_train, X_test, y_train, y_test = model_selection.train_test_split(X, y, train_size=0.65,test_size=0.35, random_state=101)print ("X_train: ", X_train)print ("y_train: ", y_train)print("X_test: ", X_test)print ("y_test: ", y_test)