bucky.util.scoring
#
Provides various scoring metrics for probabilistic forecasts.
Module Contents#
Functions#
|
Interval score. |
|
Weighted Interval Score. |
|
Logistic function. |
|
Approx Interval Score with smooth derivatives. |
- bucky.util.scoring.IS(x, lower, upper, alp)[source]#
Interval score.
- Parameters:
x –
lower –
upper –
alp –
- Return type:
numpy.ndarray
orcupy.ndarray
if using CuPy
- bucky.util.scoring.WIS(x, q, x_q, norm=False, log=False, smooth=False)[source]#
Weighted Interval Score.
- Parameters:
- Return type:
numpy.ndarray
orcupy.ndarray
if using CuPy
- bucky.util.scoring.logistic(x, x0=0.0, k=1.0, L=1.0)[source]#
Logistic function.
- Parameters:
x –
x0 –
k –
L –
- Return type:
numpy.ndarray
orcupy.ndarray
if using CuPy
- bucky.util.scoring.smooth_IS(x, lower, upper, alp)[source]#
Approx Interval Score with smooth derivatives.
- Parameters:
x –
lower –
upper –
alp –
- Return type:
numpy.ndarray
orcupy.ndarray
if using CuPy