在2-4的课程中自带函数分离训练数据集和测试数据集的划分标准是什么呢?原数据集中的哪些样本数据会划分到训练数据集、哪些样本数据会划分到测试数据集呢?
#数据分离 from sklearn.model_selection import train_test_split X_train, X_test, y_train, y_test = train_test_split(X,y,test_size = 0.4)
#数据分离 from sklearn.model_selection import train_test_split X_train, X_test, y_train, y_test = train_test_split(X,y,test_size = 0.4)
2023-11-06
举报