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
@lorentzenchr I'm thinking about taking a stab at this. I have a two questions about d2_log_loss_score.
Q1: I can't seem to locate literature that specifically uses log_loss in computation. Any pointers here for reading on how D2 and log_loss are used together? I am not too familiar with D2 overall so anything is welcome. Already checked out the Hastie & Tibshirani reference in the docstring. Also found this paper by Guisan and Zimmermann that has an explanation closer to the "meta-score" explanation in the RFC on eq 1, pg 166.
Q2, on file structure: Given that Tweedie applies to regression models and d2_tweedie_score goes into sklearn.metrics._regression. In the case of log_loss it is a classification metric (source), does this mean d2_log_loss_score should go under sklearn.metrics._classification? Thanks.
@OmarManzoor No, d2_log_loss_score is for log_loss and not yet implemented.
I see. Could you kindly provide some reference to the specification of log_loss so that I can get some guidance on how to implement it? We have a log_loss defined in classification but this should be a bit different than that?
Activity
changhsinlee commentedon Dec 3, 2021
@lorentzenchr I'm thinking about taking a stab at this. I have a two questions about
d2_log_loss_score.Q1: I can't seem to locate literature that specifically uses
log_lossin computation. Any pointers here for reading on how D2 andlog_lossare used together? I am not too familiar with D2 overall so anything is welcome. Already checked out the Hastie & Tibshirani reference in the docstring. Also found this paper by Guisan and Zimmermann that has an explanation closer to the "meta-score" explanation in the RFC on eq 1, pg 166.Q2, on file structure: Given that Tweedie applies to regression models and
d2_tweedie_scoregoes intosklearn.metrics._regression. In the case oflog_lossit is a classification metric (source), does this meand2_log_loss_scoreshould go undersklearn.metrics._classification? Thanks.changhsinlee commentedon Dec 3, 2021
Just realized that it's the same as McFadden's R^2 which was much easier to search than
D^2. Thanks for the doc!e.g.
I think I'll take on
d2_log_loss_score. Thanks. Do I need to wait for progress on #21718 ?lorentzenchr commentedon Dec 3, 2021
@changhsinlee A McFadden R2 version for log loss is not controversial, IMO, so go ahead. A PR is most welcome.
ohadmich commentedon Jan 2, 2022
@lorentzenchr I started working on implementing
d2_absolute_error_score, I'll add a PR when it's ready for review.MaxwellLZH commentedon May 17, 2022
Working on
d2_log_loss_scoreOmarManzoor commentedon Jan 11, 2023
Hi @MaxwellLZH
I just wanted to confirm that are you still working on d2_log_loss_score?
MaxwellLZH commentedon Jan 11, 2023
Hi @OmarManzoor, I'm not working on it at the moment, you can go ahead :)
OmarManzoor commentedon Jan 11, 2023
Thank you for the clarification.
OmarManzoor commentedon Jan 12, 2023
Hi @lorentzenchr
Is the
d2_log_loss_scorethe D^2 version for themean_squared_log_error?lorentzenchr commentedon Jan 12, 2023
@OmarManzoor No,
d2_log_loss_scoreis forlog_lossand not yet implemented.OmarManzoor commentedon Jan 12, 2023
I see. Could you kindly provide some reference to the specification of log_loss so that I can get some guidance on how to implement it? We have a log_loss defined in classification but this should be a bit different than that?
lorentzenchr commentedon May 2, 2024
I would still add a D2 Brier score and then we can finally close here.
OmarManzoor commentedon May 2, 2024
Since the approach for this seems similar, would it be okay if I work on this too?