Is sklearn.metrics.mean_squared_error the larger the better (negated)?
The actual function “mean_squared_error” doesn’t have anything about the negative part. But the function implemented when you try ‘neg_mean_squared_error’ will return a negated version of the score. Please check the source code as to how its defined in the source code: neg_mean_squared_error_scorer = make_scorer(mean_squared_error, greater_is_better=False) Observe how the param greater_is_better is set to False. Now … Read more