Skip to content

Commit

Permalink
Add backticks around np.inf
Browse files Browse the repository at this point in the history
Signed-off-by: Stephanie Chong <[email protected]>
  • Loading branch information
Steph-Chong authored Sep 6, 2024
1 parent a03ee9d commit 78fa173
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scores/continuous/standard_impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit 78fa173

Please sign in to comment.