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 }}
Repository navigation
add RMSLE to sklearn.metrics.SCORERS.keys() #21686
I'm +0 on this one. There's no harm in adding it. But I already have my doubts about MSLE which we already have.
As info, not for discussion: My doubts stem from the fact that it is not clear to me what functional of the predictive distribution we get when minimizing MSLE. For instance, minimizing squared error gives the conditional expectation E[Y|X], minimizing absolute error gives the conditional median Median[Y|X] (given that the correct model is among the models under consideration when minimizing).
@INF800 I would help a little if your feature request would contain a bit more information and a motivation/use case why it is important (for you) to add this feature.
The use case is pretty simple. RMSLE is one of widely used losses and having it available 9ut of the box would be good to have but not seem necessary as you suggested.
But getting it out of the box is good to have in terms of developer experience.
I raised this PR because we have both neg_mean_squared_error and neg_root_mean_squared_error implementations available. Can't we use the same rationale to implement RMSLE along with MSLE.
The motivation for RMSE is to have a metric with the same unit (meter, seconds, money) as the target y which makes it easier to read and interpret. MSLE is on the unit of the square of the log of the unit of the target, i.e. taking the square root does not really make it better (log unit vs square log unit).
Additionally, adding it also adds maintenance costs.
The motivation for RMSE is to have a metric with the same unit (meter, seconds, money) as the target y which makes it easier to read and interpret. MSLE is on the unit of the square of the log of the unit of the target, i.e. taking the square root does not really make it better (log unit vs square log unit). Additionally, adding it also adds maintenance costs.
One more suggestion: If you are interested in estimating the expectation E[Y|X], and if your target y is positive, you may be interested in using mean_gamma_deviance. Among a certain set of meaningful scoring functions, it has the unique property of being scale invariant: Multiplying y_pred and y_true by the same positive number does not change the score. It therefore has no unit (or unit 1).
Activity
rozeappletree commentedon Nov 16, 2021
Is it good to have?
adrinjalali commentedon Nov 16, 2021
ping @lorentzenchr
lorentzenchr commentedon Nov 17, 2021
I'm +0 on this one. There's no harm in adding it. But I already have my doubts about MSLE which we already have.
As info, not for discussion: My doubts stem from the fact that it is not clear to me what functional of the predictive distribution we get when minimizing MSLE. For instance, minimizing squared error gives the conditional expectation E[Y|X], minimizing absolute error gives the conditional median Median[Y|X] (given that the correct model is among the models under consideration when minimizing).
@INF800 I would help a little if your feature request would contain a bit more information and a motivation/use case why it is important (for you) to add this feature.
rozeappletree commentedon Nov 17, 2021
The use case is pretty simple. RMSLE is one of widely used losses and having it available 9ut of the box would be good to have but not seem necessary as you suggested.
But getting it out of the box is good to have in terms of developer experience.
I raised this PR because we have both
neg_mean_squared_errorandneg_root_mean_squared_errorimplementations available. Can't we use the same rationale to implement RMSLE along with MSLE.lorentzenchr commentedon Nov 19, 2021
The motivation for RMSE is to have a metric with the same unit (meter, seconds, money) as the target
ywhich makes it easier to read and interpret. MSLE is on the unit of the square of the log of the unit of the target, i.e. taking the square root does not really make it better (log unit vs square log unit).Additionally, adding it also adds maintenance costs.
All you need in user code is:
rozeappletree commentedon Nov 19, 2021
+1 makes sense.
lorentzenchr commentedon Nov 20, 2021
One more suggestion: If you are interested in estimating the expectation
E[Y|X], and if your targetyis positive, you may be interested in using mean_gamma_deviance. Among a certain set of meaningful scoring functions, it has the unique property of being scale invariant: Multiplyingy_predandy_trueby the same positive number does not change the score. It therefore has no unit (or unit 1).