我在转换逻辑模型时遇到与输入形状有关的价值错误
getCurrentAccessToken
错误
const { userID } = data;
this.props.setFacebookId(userID); // saves the userID on the server
答案 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