我从列车测试分割法中得到了值误差

2024-04-19 12:13:34 发布

您现在位置:Python中文网/ 问答频道 /正文

这是我的密码

 X_train , X_test,  y_train, y_test = train_test_split(X, y, test_size=0.4, random_state=101)

这就是我得到的

ValueError: Found input variables with inconsistent numbers of samples: [7, 5000]

我不知道发生了什么,我试着一遍又一遍地重复,这就是我所得到的


Tags: oftest密码inputsizewithtrainrandom