-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* metrics: add CRPSS Add skill score version of the CRPS metric, which shows the relative improvement (in terms of CRPS) between a forecast versus a reference forecast. * metrics: add test for negative CRPSS value Add test for situation where the CRPS of the forecast is worse than the reference forecast and therefore the CRPSS is negative. * docs/api: list CRPSS metric (for prob fx) * docs/whatsnew/1.0.04rc4: add CRPS skill score mention * tests: flake8 corrections * tests/calculator: handle CRPSS requiring ref dist fx Revisions to handle CRPSS requiring reference forecasts that are full distribution forecasts (not just single probability forecasts). Still a work-in-progress from these changes are moving things forward. * CRPS: add checks to ensure forecasts have proper dimensions Add checks to ensure that the forecasts given to the CRPS function have the correct dimensions. If there is an issue, raise a ValueError. * CRPS: more revisions to improve robustness Revisions to further improve robustness of inputs to CRPS and CRPSS. Particularly for the reference forecasts. * calculator tests: revise for CRPSS changes * CRPSS: modify to avoid divide by zero Modify the CRPSS calculation to avoid divide by zero (same pattern as in `deterministic.forecast_skill`).
- Loading branch information
Showing
5 changed files
with
159 additions
and
19 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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