All scorer objects follow the convention that higher return values are better than lower return values. Thus metrics which measure the distance between the model and the data, like metrics.mean_squared_error, are available as neg_mean_squared_error which return the negated value of the metric.
这是由于
scikit-learn
中的一个约定:(引自here)
由于您的
cross_val_score
返回负的MAE(请参见您将scoring='neg_mean_absolute_error'
作为参数传递),因此您需要负号来获得实际的MAE相关问题 更多 >
编程相关推荐