我如何解决Jupyter Notebook中没有模块错误

时间:2020-05-16 06:17:13

标签: jupyter-notebook

从sklearn.cross_validation导入

test_split 随机输入种子

种子(20) train_x = data.drop(['Attrition'],axis = 1) train_y =数据['损耗']

X,test_x,test_y = train_test_split(train_x,train_y,test_size = 0.3,random_state = 20) len(test_x)

0 个答案:

没有答案