From 78fa17372bcc10ca91bbe4a759e486a394c2ee1b Mon Sep 17 00:00:00 2001 From: Stephanie Chong <168800785+Steph-Chong@users.noreply.github.com> Date: Fri, 6 Sep 2024 18:53:28 +1000 Subject: [PATCH] Add backticks around np.inf Signed-off-by: Stephanie Chong <168800785+Steph-Chong@users.noreply.github.com> --- src/scores/continuous/standard_impl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scores/continuous/standard_impl.py b/src/scores/continuous/standard_impl.py index c0e09ad2..a29f3d29 100644 --- a/src/scores/continuous/standard_impl.py +++ b/src/scores/continuous/standard_impl.py @@ -357,7 +357,7 @@ def pbias( Percent bias is used for evaluating and comparing forecast accuracy across stations or datasets with varying magnitudes. By expressing the error as a percentage of the observed value, it allows for standardised comparisons, enabling assessment of forecast performance regardless of the absolute scale of values. Like :py:func:`scores.continuous.multiplicative_bias`, - ``pbias`` will return a np.inf where the mean of ``obs`` across the dims to be reduced is 0. It is defined as + ``pbias`` will return a ``np.inf`` where the mean of ``obs`` across the dims to be reduced is 0. It is defined as .. math:: \\text{Percent bias} = 100 * \\frac{\\sum_{i=1}^{N}(x_i - y_i)}{\\sum_{i=1}^{N} y_i}