如何修复多输出线性回归预测dim在sklearn中不对齐?

时间:2017-02-02 08:52:13

标签: python scikit-learn linear-regression

当我尝试使用sklearn.linear-regression时会发生此错误:

这是我的代码:

#the dimension of data and lable for linear regression
X_test =1*688
Y_test =1*2065


X_train =501*688
Y_train =501*2065

# fit the regression model
model.fit(X_train,Y_train)


y_test_prediction=model.predict(X_test)

此链接是我的错误:
   enter image description here

0 个答案:

没有答案