xarray-contrib / xskillscore

Metrics for verifying forecasts
https://xskillscore.readthedocs.io/en/stable/
Apache License 2.0
218 stars 36 forks source link

metrics to add #284

Open raybellwaves opened 3 years ago

raybellwaves commented 3 years ago

Keep this comment in this issue updated with metrics to add to xskillscore. Consolidate from other issues as well as comments that appear below. The format for inputting will be:

The full list of metrics current in xskillscore can be found here. Remove issues from here once they are added.

Correlation Metrics

Distance Metrics

Probabilistic Metrics

Dichotomous-Only (yes/no) Metrics

Multi-Category Metrics

Comparative

Resampling

Metric glossaries:

aaronspring commented 2 years ago

what about brier_score with decomposition? nice explanation in https://timvangelder.com/2015/05/18/brier-score-composition-a-mini-tutorial/ implemented in https://github.com/csiro-dcfp/doppyo/blob/8c620889bde8a21d5937eb7ac71e72a040b31867/doppyo/skill.py#L868 with loop. do you think there is a solution without a loop @dougiesquire ?

dougiesquire commented 2 years ago

Sorry I've been on leave. I don't remember much about the brier_score implementation in doppyo, but I'm sure it could be improved. At the very least, we could implement the loop with numpy arrays and then wrap with apply_ufunc as is done for many of the other functions in xskillscore

aaronspring commented 1 year ago
raybellwaves commented 7 months ago

https://github.com/google-research/weatherbench2/blob/main/weatherbench2/metrics.py