Repository navigation
Conversation
Contributor
Author
|
@claude review |
ivargr
marked this pull request as ready for review
December 4, 2026 13:41
|
No significant findings: the cap is applied the same way in the per-sample and per-row paths of all three log1p metrics, and the new tests check the right values.
Verdict: safe to merge. |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
crps_log1pand the twowinkler_score_*_log1pmetrics gave NaN for a forecast with a sample at -1 or below, becauselog1pis undefined there. The leaderboard mean skipped such a forecast for that model only, while the selection bias estimate dropped it for every model, so the two disagreed. Negative forecast samples are now counted as 0 before the transform, so every forecast gets a score.This changes the stored values of these three metrics for backtests whose forecasts have negative samples. Samples between -1 and 0 were scored as negative log values before and are scored as 0 now.
Review needed
Review needed: check: that capping in the log1p metrics only (not in the other metrics or in the stored forecasts) is the intended place
Test plan
split_scoreskeeps the forecasts where one model has samples below -1.make lintandmake testpass.