MSE
Mean squared error between predictions and ground truth.Ground-truth array of shape
(..., seq_len)Predicted array with the same shape as
y_trueMean squared error between
y_true and y_predExample
MAE
Mean absolute error between predictions and ground truth.Ground-truth array
Predicted array with the same shape as
y_trueMean absolute error between
y_true and y_predExample
RMSE
Root mean squared error between predictions and ground truth.Ground-truth array
Predicted array with the same shape as
y_trueRoot mean squared error
Example
MAPE
Mean absolute percentage error between predictions and ground truth.Ground-truth array
Predicted array with the same shape as
y_trueMean absolute percentage error. A small epsilon (1e-5) is added to the denominator to avoid division by zero
Example
SMAPE
Symmetric mean absolute percentage error between predictions and ground truth.Ground-truth array
Predicted array with the same shape as
y_trueSMAPE value
Example
NRMSE
Normalized root mean squared error. Normalizes RMSE by the range of the true values.Ground-truth array
Predicted array with the same shape as
y_trueNormalized RMSE
Example
ND
Normalized deviation between predictions and ground truth.Ground-truth array
Predicted array with the same shape as
y_trueNormalized deviation
Example
MASE
Mean absolute scaled error. Scales the absolute errors by the average in-sample one-step naive forecast error.Context array of shape
(W, S, Lc) where W is the number of windows, S is the number of series, and Lc is the context lengthGround-truth array of shape
(W, S, H) where H is the horizon lengthPredicted array with the same shape as
y_trueReduction mode:
"none": Return MASE values for each (window, series) pair as shape(W, S)"series": Average over windows, return per-series values of shape(S,)"window": Average over series, return per-window values of shape(W,)"mean": Return scalar mean MASE across all windows and series
The mean absolute scaled error. Return type depends on the
reduce parameter:reduce="none": Returnsnp.ndarrayof shape(W, S)reduce="series": Returnsnp.ndarrayof shape(S,)reduce="window": Returnsnp.ndarrayof shape(W,)reduce="mean": Returnsfloat