【发布时间】:2020-09-09 00:27:14
【问题描述】:
这是我的代码
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]
我不知道发生了什么,我试图一遍又一遍地运行它,这就是我得到的全部
【问题讨论】:
-
希望这个链接对你有帮助..datascience.stackexchange.com/questions/20199/…
标签: python python-3.x scikit-learn linear-regression