solarforecastarbiter.metrics.deterministic.normalized_mean_absolute

solarforecastarbiter.metrics.deterministic.normalized_mean_absolute(obs, fx, norm, error_fnc=<function error>)[source]

Normalized mean absolute error (NMAE).

\[\text{NMAE} = \text{MAE} / \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:

nmae (float) – The NMAE [%] of the forecast.