A Python library for evaluating probabilistic forecasts using proper scoring rules. Version 0.1 is the only release; the project is in maintenance mode with no recent updates. It provides implementations of the Continuous Ranked Probability Score (CRPS), Brier score, and related metrics for forecast verification.
pip install properscoringVerified import paths — ran on the pinned version, not inferred.
Compute the Continuous Ranked Probability Score (CRPS) for ensemble forecasts against observations.
Ensure observations have shape (n,) or (1, n) and ensemble has shape (n_ens, n); use `ensemble.T` if needed.
Use Python 3.8 or 3.9 for guaranteed compatibility, or install via conda-forge: `conda install -c conda-forge properscoring`.
Manually remove or impute NaN values before calling the function.
Run `pip install properscoring` and verify import with `import properscoring`.
Reshape: observations should be (n,) or (1, n), ensemble should be (m, n). Use `np.atleast_2d(obs)` and check ensemble shape.
Restart the interpreter and avoid using the function name as a variable.