All models

NeuralForecast NBEATSx

N-BEATS with exogenous inputs, built for electricity price forecasting and interpretable decompositions.

Time series · 103 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (25 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Parameters
3.4M
Operations
103
Framework
PyTorch
Recurrent
No
Published
International Journal of Forecasting (arXiv 2021)
Cited by
1 (as of 18 October 2026)
Authors
Kin G. Olivares, Cristian Challu, Grzegorz Marcjasz and others
License
Apache-2.0
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m1918
Graph hash
8d4b50dc87e787546973127f6fc9b5c2d7b17dfa0ccaee9247d98d757ac906df
Skeleton hash
26d2c20524a9c8a1f4bbe1eaff9742e982895419477fd204d04e735a583aec9f
Architecture hash
7e171f9a1889aef887902faf1d8f6acd398a4bbe1267c06343402607346e4aae
Diagram SHA-256
c69b1a77d3c9df9a40a50723367aeb0982911a1a524cd2e06a526f461e9b2a49
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

NBEATSx extends the neural basis expansion analysis model, NBEATS, to incorporate exogenous factors. The resulting method improves on a well performing deep learning model by extending its capabilities to include exogenous variables and integrate multiple sources of useful information.

The paper's showcase is electricity price forecasting, studied across a broad range of years and markets. There the authors report state-of-the-art performance, improving forecast accuracy by nearly 20% over the original NBEATS model and by up to 5% over other well established statistical and machine learning methods. The network also has an interpretable configuration that can structurally decompose a time series, visualizing the relative impact of trend and seasonal components and revealing the interactions with exogenous factors.

The research repository reports two configurations, NBEATSx-G and NBEATSx-I, on the Nord Pool market over two years of test using ensembled models. In that table NBEATSx-G reaches 1.58 MAE and NBEATSx-I 1.62, against 2.08 for NBEATS. The member traced here is NeuralForecast's NBEATSx, which the library calls its official implementation, published at the International Journal of Forecasting.

Key idea. NBEATSx adds exogenous variables to the NBEATS basis expansion, lifting electricity price forecast accuracy by nearly 20% over the original NBEATS model while keeping an interpretable trend, seasonal and exogenous decomposition.

  • nbeatsx
  • n-beatsx
  • n-beats-x
  • nbeats exogenous
  • neural basis expansion analysis with exogenous variables
  • nbeats
  • n-beats
  • electricity price forecasting
  • epf
  • neuralforecast
  • nixtla
  • time series forecasting

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{olivares2022neuralbasisexpansionanalysis,
      title={Neural basis expansion analysis with exogenous variables: Forecasting electricity prices with NBEATSx}, 
      author={Kin G. Olivares and Cristian Challu and Grzegorz Marcjasz and Rafał Weron and Artur Dubrawski},
      year={2022},
      eprint={2104.05522},
      archivePrefix={arXiv},
      primaryClass={cs.LG},
      doi={https://doi.org/10.1016/j.ijforecast.2022.03.001},
      url={https://arxiv.org/abs/2104.05522}, 
}