Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
| **orientation** | negative |
+-----------------+-----------+
Reference:
* Matheson, James E., and Robert L. Winkler. “Scoring Rules for
Continuous Probability Distributions.” Management Science 22, no. 10
(June 1, 1976): 1087–96. https://doi.org/10/cwwt4g.
* https://www.lokad.com/continuous-ranked-probability-score
See also:
* properscoring.crps_ensemble
* xskillscore.crps_ensemble
"""
weights = metric_kwargs.get('weights', None)
# switch positions because xskillscore.crps_ensemble(verif, forecasts)
return crps_ensemble(verif, forecast, weights=weights)