我的逻辑回归代码遇到价值错误

时间:2019-01-06 05:41:13

标签: python machine-learning scikit-learn

我在转换逻辑模型时遇到与输入形状有关的价值错误

getCurrentAccessToken

错误

const { userID } = data;
this.props.setFacebookId(userID); // saves the userID on the server

1 个答案:

答案 0 :(得分:2)

您正在将拆分的数据解压缩到错误的变量中,顺序应如下:

X_train, X_test, y_train, y_test = train_test_split(...)

https://scikit-learn.org/stable/modules/generated/sklearn.model_selection.train_test_split.html