数据拆分 from sklearn.model_selection import train_test_split用法:X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=.3, random_state=0)test_size:测试集所占比例 转载于:https://www.cnblogs.com/rener0424/p/11238145.html