solarforecastarbiter.metrics.deterministic.normalized_root_mean_square¶
-
solarforecastarbiter.metrics.deterministic.
normalized_root_mean_square
(obs, fx, norm, error_fnc=<function error>)[source]¶ Normalized root mean square error (NRMSE).
\[\text{NRMSE} = \text{RMSE} / \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: nrmse (float) – The NRMSE [%] of the forecast.