Skip to content

Where to find how the NRMSE is Calculated in GluonTS #2336

Answered by jgasthaus
MarleneBs asked this question in Q&A
Discussion options

You must be logged in to vote

If you have $N$ time series, and a prediction length of $H$, denote by $x_{i, h}$ the true value of time series $i$ at prediction horizon $h$, and the corresponding mean forecast by $\hat{x}_{i, h}$. Then the RMSE is computed as
$$\text{RMSE} = \sqrt{\frac{1}{N}\sum_{i=1}^N \frac{1}{H}\sum_{h=1}^{H} (x_{i, h} - \hat{x}_{i, h})^2}.$$
The NRMSE is RMSE normalized by the mean of the absolute true values, i.e.
$$\text{NRMSE} = \frac{\text{RMSE}}{\frac{1}{NH}\sum_i \sum_h |x_{i,h}|}$$

The corresponding code is split across multiple places:

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@MarleneBs
Comment options

Answer selected by MarleneBs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants