solarforecastarbiter.metrics.deterministic.normalized_mean_bias¶
-
solarforecastarbiter.metrics.deterministic.
normalized_mean_bias
(obs, fx, norm, error_fnc=<function error>)[source]¶ Normalized mean bias error (NMBE).
\[\text{NMBE} = \text{MBE} / \text{norm} * 100%\]Parameters: - obs ((n,) array-like) – Observed values.
- fx ((n,) array-like) – Forecasted values.
- norm (float) – Normalized factor, in the same units as obs and fx.
- error_fnc (function) – A function that returns the error, default fx - obs. First argument is obs, second argument is fx.
Returns: nmbe (float) – The NMBE [%] of the forecast.