lstnet-time-series-forecasting-eval
Modeling Long- and Short-Term Temporal Patterns with Deep Neural Networks — Lai et al. (2017) (arXiv:1703.07015, 2017)
What this evaluates
Evaluates multivariate time series forecasting models on their ability to capture short-term local dependencies and long-term periodic patterns across diverse real-world datasets with varying temporal scales and frequencies.
Datasets
- Traffic — total 17544; splits: train (-1), val (-1), test (-1)
- Solar-Energy — total 52560; splits: train (-1), val (-1), test (-1)
- Electricity — total 26304; splits: train (-1), val (-1), test (-1)
- Exchange-Rate — total 7588; splits: train (-1), val (-1), test (-1)
Metrics
RSE (primary) — range: [0, 1] or higher
- Root Relative Squared Error: RSE = sqrt(Σ(Y_it - Ŷ_it)^2) / sqrt(Σ(Y_it - mean(Y))^2). It is a scale-insensitive version of RMSE normalized by a baseline mean prediction. Lower values indicate better performance.
CORR — range: [-1, 1]
- Empirical Correlation Coefficient: CORR = (1/n) Σ_i [ Σ_t((Y_it - mean(Y_i))(Ŷ_it - mean(Ŷ_i))) / sqrt(Σ_t(Y_it - mean(Y_i))^2 * Σ_t(Ŷ_it - mean(Ŷ_i))^2) ]. It measures the average Pearson correlation across all D variables. Higher values indicate better performance.
Input / output format
Input: Multivariate time series sequences of length T with D variables, sampled at fixed intervals (hourly, 10-min, or daily). Models receive historical windows and predict future values over horizons of 3, 6, 12, or 24 time steps depending on the dataset.
Output: Predicted values for D variables over the specified forecasting horizon.
Scoring recipe
def compute_rse(y_true, y_pred, y_mean):
num = np.sqrt(np.sum((y_true - y_pred)**2))
den = np.sqrt(np.sum((y_true - y_mean)**2))
return num / den
def compute_corr(y_true, y_pred):
n = y_true.shape[0]
total = 0.0
for i in range(n):
yt, yp = y_true[i], y_pred[i]
myt, myp = np.mean(yt), np.mean(yp)
cov = np.sum((yt - myt) * (yp - myp))
denom = np.sqrt(np.sum((yt - myt)**2) * np.sum((yp - myp)**2))
total += cov / denom
return total / n
Common pitfalls
- Forecasting horizons are dataset-specific (hours for Traffic/Electricity, minutes for Solar-Energy, days for Exchange-Rate), so direct cross-dataset metric comparison is invalid without horizon normalization.
- Single-output baselines (AR, LRidge, LSVR, GP) are trained independently per variable, whereas multivariate models share parameters; this architectural difference affects fairness in comparison.
- RSE is scale-insensitive and lower is better, whereas CORR is higher is better; confusing the optimization direction leads to incorrect model selection.
Evidence (verbatim from paper)
We used three conventional evaluation metrics defined as: Root Relative Squared Error (RSE): ... Empirical Correlation Coefficient (CORR) ... where Y, Ŷ ∈ R^{n×T} are ground true signals and system prediction signals, respectively. ... All datasets have been split into training set (60%), validation set (20%) and test set (20%) in chronological order.
Citation
@misc{lai2017lstnet,
title={Modeling Long- and Short-Term Temporal Patterns with Deep Neural Networks},
author={Lai et al. (2017)},
year={2017},
note={arXiv:1703.07015}
}
1---2name: lstnet-time-series-forecasting-eval3description: Evaluates multivariate time series forecasting models on their ability to capture short-term local dependencies and long-term periodic patterns across diverse real-world datasets with varying temporal scales and frequencies. Use when the user wants to benchmark on Traffic, Solar-Energy, Electricity, Exchange-Rate, or asks about evaluating this task. Reports RSE.4metadata:5 source: https://skillmd.com/skills/qhjqhj00/lstnet-time-series-forecasting-eval6 skill_kind: dataset_eval7 source_arxiv: 1703.070158 bibtex_key: lai2017lstnet9 confidence: high10---1112# lstnet-time-series-forecasting-eval1314> Modeling Long- and Short-Term Temporal Patterns with Deep Neural Networks — Lai et al. (2017) (arXiv:1703.07015, 2017)1516## What this evaluates1718Evaluates multivariate time series forecasting models on their ability to capture short-term local dependencies and long-term periodic patterns across diverse real-world datasets with varying temporal scales and frequencies.1920## Datasets2122- **Traffic** — total 17544; splits: train (-1), val (-1), test (-1)23- **Solar-Energy** — total 52560; splits: train (-1), val (-1), test (-1)24- **Electricity** — total 26304; splits: train (-1), val (-1), test (-1)25- **Exchange-Rate** — total 7588; splits: train (-1), val (-1), test (-1)2627## Metrics2829- `RSE` **(primary)** — range: [0, 1] or higher30 - Root Relative Squared Error: RSE = sqrt(Σ(Y_it - Ŷ_it)^2) / sqrt(Σ(Y_it - mean(Y))^2). It is a scale-insensitive version of RMSE normalized by a baseline mean prediction. Lower values indicate better performance.31- `CORR` — range: [-1, 1]32 - Empirical Correlation Coefficient: CORR = (1/n) Σ_i [ Σ_t((Y_it - mean(Y_i))(Ŷ_it - mean(Ŷ_i))) / sqrt(Σ_t(Y_it - mean(Y_i))^2 * Σ_t(Ŷ_it - mean(Ŷ_i))^2) ]. It measures the average Pearson correlation across all D variables. Higher values indicate better performance.3334## Input / output format3536**Input**: Multivariate time series sequences of length T with D variables, sampled at fixed intervals (hourly, 10-min, or daily). Models receive historical windows and predict future values over horizons of 3, 6, 12, or 24 time steps depending on the dataset.3738**Output**: Predicted values for D variables over the specified forecasting horizon.3940## Scoring recipe4142```python43def compute_rse(y_true, y_pred, y_mean):44 num = np.sqrt(np.sum((y_true - y_pred)**2))45 den = np.sqrt(np.sum((y_true - y_mean)**2))46 return num / den4748def compute_corr(y_true, y_pred):49 n = y_true.shape[0]50 total = 0.051 for i in range(n):52 yt, yp = y_true[i], y_pred[i]53 myt, myp = np.mean(yt), np.mean(yp)54 cov = np.sum((yt - myt) * (yp - myp))55 denom = np.sqrt(np.sum((yt - myt)**2) * np.sum((yp - myp)**2))56 total += cov / denom57 return total / n58```5960## Common pitfalls6162- Forecasting horizons are dataset-specific (hours for Traffic/Electricity, minutes for Solar-Energy, days for Exchange-Rate), so direct cross-dataset metric comparison is invalid without horizon normalization.63- Single-output baselines (AR, LRidge, LSVR, GP) are trained independently per variable, whereas multivariate models share parameters; this architectural difference affects fairness in comparison.64- RSE is scale-insensitive and lower is better, whereas CORR is higher is better; confusing the optimization direction leads to incorrect model selection.6566## Evidence (verbatim from paper)6768> We used three conventional evaluation metrics defined as: Root Relative Squared Error (RSE): ... Empirical Correlation Coefficient (CORR) ... where Y, Ŷ ∈ R^{n×T} are ground true signals and system prediction signals, respectively. ... All datasets have been split into training set (60%), validation set (20%) and test set (20%) in chronological order.6970## Citation7172```bibtex73@misc{lai2017lstnet,74 title={Modeling Long- and Short-Term Temporal Patterns with Deep Neural Networks},75 author={Lai et al. (2017)},76 year={2017},77 note={arXiv:1703.07015}78}79```8081- arXiv: 1703.07015