Practical overview
When it fits
Use it when a Python and PyTorch project needs the documented ETSformer forecasting interface or its classification wrapper, and the surrounding data and application workflow will be handled separately.
Who it is for
- Python developers adding time-series forecasting to an application or analysis pipeline.
- Practitioners building classification workflows for sequential data.
Documented uses
- Generate a specified number of forecast steps from multivariate time-series inputs.
- Produce class logits from sequence data using the documented classification wrapper.
- Use an ETSformer model component within a larger time-series workflow.
Requirements & limits
The repository is public and lists an MIT license.
- Forecasting inputs are represented as batches with time features; the example returns the same feature dimension across the requested forecast horizon.
- Classification uses a separate wrapper, with
num_classesand pooling-related settings configured explicitly. - The documented installation command is
pip install etsformer-pytorch.
Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.
Install the package and prepare a forecasting call
Install the Python package and set up the documented ETSformer input and forecast call.
Before you start
- Python environment with pip
- PyTorch, imported as torch
Steps
Install the package with the command below.
pip install etsformer-pytorchImport
torchandETSFormerfrometsformer_pytorch.Construct
ETSFormerwithtime_featuresand model settings such asmodel_dim,layers,heads,Kanddropout.Pass a time-series tensor to the model with
num_steps_forecastset to the desired forecast horizon.
Expected outcome
The README example returns a forecast tensor shaped as batch × forecast steps × time features.
Guide limitations
- The example values are provided as a usage illustration, not as dataset-specific recommendations.
Sources & review
Source record details
- Source availability
- Active
- Sources checked
- 17 October 2026
- Original website title
- lucidrains/ETSformer-pytorch · Official homepage title · retained in its source language

