当我尝试使用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