mean_squared_error(y_true, y_predict)
报错:Found input variables with inconsistent numbers of samples
原因:y_true和y_predict行数不一致问题
y_true.shape
y_predict.shape
查看真实值和预测值的形状
mean_squared_error(y_true, y_predict)
报错:Found input variables with inconsistent numbers of samples
原因:y_true和y_predict行数不一致问题
y_true.shape
y_predict.shape
查看真实值和预测值的形状