You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
More intuitive scoring argument for loss and error #5023
Using the grid search meta-estimator with the "mean_square_error", the "mean_absolute_error", the "median_absolute_error" or the "log_loss" as scoring parameters leads to the negation of those metrics. This is confusing especially for new users.
I suggest that we prefix those strings by "neg-" or "negative_". This would make clear from the start that the score is obtained from the negation of the loss / error.
On Thu, Jul 23, 2015 at 12:17 PM, Arnaud Joly [email protected]
wrote:
Using grid search with the "mean_square_error", the "mean_absolute_error",
the "median_absolute_error" or the "log_loss"` as scoring parameter lead
to the negation of those metrics.
This is confusing especially for new users.
I suggest that we prefix those strings by "neg-" or "negative_". This
would make clear from the start that the score is obtained from the
negation of the loss / error.
—
Reply to this email directly or view it on GitHub #5023.
I'd prefer to flip the sign back (which needs an additional line in GridSearchCV and friends).
As we can't seem to be able to get a consensus for that, I guess we have to go with some prefix like that.
We could quickly implement both strategies (prefix and flipping sign back) in a branch and try them on an actual use case. This will probably help make our mind.
well we had flipping the sign back in master. The main criticism was that it requires one line of code in GridSearchCV iirc.
I'm not sure implementing the prefix will help us decide, because it is more about user perception. The implementation is pretty straight-forward, right?
The question is just if users will be confused that we don't have mse, but instead negative_mse / -mse
Because it requires adding attributes on functions, which at the time I deemed to hacky and complicated for custom metrics. However, I'm willing to drop that concern. We need to solve the issue one way or another.
Initially I was in favor of having an explicit flag to state whether higher is better. I think I still prefer this solution over the neg- prefix solution.
Is anybody on this? If not, I'd like to take a shot at it. Also, is this supposed to be fixed at 0.17x or 0.18? This part of the code changed a lot between those milestones.
Is anybody on this? If not, I'd like to take a shot at it. Also, is this
supposed to be fixed at 0.17x or 0.18? This part of the code changed a lot
between those milestones.
—
Reply to this email directly or view it on GitHub #5023 (comment)
.
it looks like the PR at #6028 had been accidentally closed. I've reopened it on the basis that there was no indication it should be closed. @lvrzhn are you still intending to fix it up?
Activity
kastnerkyle commentedon Jul 23, 2015
1000x agreed
On Thu, Jul 23, 2015 at 12:17 PM, Arnaud Joly [email protected]
wrote:
mblondel commentedon Jul 27, 2015
See also #2439.
There is also the solution of flipping the sign back but more people seem to favor the
neg-prefix solution.GaelVaroquaux commentedon Jul 27, 2015
amueller commentedon Jul 30, 2015
I'd prefer to flip the sign back (which needs an additional line in GridSearchCV and friends).
As we can't seem to be able to get a consensus for that, I guess we have to go with some prefix like that.
jnothman commentedon Aug 3, 2015
Prefix could just be
-of course...arjoly commentedon Sep 9, 2015
Recently, I met one more people that was bitten by this. This person was very frustrated after loosing hours to understand what was happening.
mblondel commentedon Sep 9, 2015
We could quickly implement both strategies (prefix and flipping sign back) in a branch and try them on an actual use case. This will probably help make our mind.
amueller commentedon Sep 9, 2015
well we had flipping the sign back in master. The main criticism was that it requires one line of code in GridSearchCV iirc.
I'm not sure implementing the prefix will help us decide, because it is more about user perception. The implementation is pretty straight-forward, right?
The question is just if users will be confused that we don't have mse, but instead negative_mse / -mse
mblondel commentedon Sep 9, 2015
We should A/B test our API :)
I didn't know, when?
amueller commentedon Sep 9, 2015
When we introduced the scoring. I thought you removed it in the refactoring.
mblondel commentedon Sep 9, 2015
Strange, I'm my self +1 for flipping the sign back.
amueller commentedon Sep 9, 2015
My bad, it was @larsmans 393b996#diff-b1caa89fb43c7835879f68a3ec494560
larsmans commentedon Sep 9, 2015
Yeah, that was me... +1 on the
neg_prefix, I think I suggested that somewhere, too.amueller commentedon Sep 10, 2015
https://issues.apache.org/jira/browse/SPARK-10097 ^^
3 remaining items
larsmans commentedon Sep 10, 2015
Because it requires adding attributes on functions, which at the time I deemed to hacky and complicated for custom metrics. However, I'm willing to drop that concern. We need to solve the issue one way or another.
amueller commentedon Oct 21, 2015
Maybe we can discuss this at the sprint. This is really bad: https://github.com/scikit-learn/scikit-learn/pull/5498/files#diff-ff4438be9ee77932848f5abfcec060efR690
ogrisel commentedon Oct 21, 2015
Initially I was in favor of having an explicit flag to state whether higher is better. I think I still prefer this solution over the
neg-prefix solution.amueller commentedon Oct 23, 2015
We just had a discussion and agreed on the
neg-fixlvrzhn commentedon Nov 16, 2015
Working on this now.
OmidSaremi commentedon Nov 16, 2015
Working on it with @lvrzhn
amueller commentedon Dec 11, 2015
@lvrzhn do you have a pull request?
davidthaler commentedon Dec 11, 2015
Is anybody on this? If not, I'd like to take a shot at it. Also, is this supposed to be fixed at 0.17x or 0.18? This part of the code changed a lot between those milestones.
lvrzhn commentedon Dec 11, 2015
David, I'm on it. Will do pull request today.
On Fri, Dec 11, 2015, 01:45 David Thaler [email protected] wrote:
raghavrv commentedon Apr 30, 2016
@davidthaler @lvrzhn Could I take up this issue?
jnothman commentedon Apr 30, 2016
it looks like the PR at #6028 had been accidentally closed. I've reopened it on the basis that there was no indication it should be closed. @lvrzhn are you still intending to fix it up?
raghavrv commentedon Apr 30, 2016
Ah! Sorry I missed that PR!
jykong commentedon Jun 10, 2016
+1 from a confused new user
amueller commentedon Sep 12, 2016
fixed in #7261.