r2_score(test_y, test_predict) 改为 r2_score(test_y[0], test_predict[0]) def r2_score(y_true, y_pred, sample_weight=None, multioutput="uniform_average"): """R^2 (coefficient of determination) regression score function. Best possible score is 1.0 and it can be negative (because t...