Skip to content

mean_absolute_error gives out negative result #6129

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
fayeshine opened this issue Jan 7, 2016 · 2 comments
Closed

mean_absolute_error gives out negative result #6129

fayeshine opened this issue Jan 7, 2016 · 2 comments

Comments

@fayeshine
Copy link
Contributor

from sklearn import *
model = linear_model.LinearRegression(n_jobs=8)
%time cross_validation.cross_val_score(model, feature, label, scoring='mean_absolute_error')

Out[16]: array([-0.13273084, -0.13613474, -0.13891673])

@davidthaler
Copy link
Contributor

Its been discussed before (#5023). Those scores are -1*MAE. All of the loss metrics get negated.

@amueller
Copy link
Member

this is fixed now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants