ETSformerOptions<T>
Options & Configuration · AiDotNet.Models.Options
Configuration options for the ETSformer model.
Inheritance: ModelOptions → ETSformerOptions<T>
For Beginners
These options control how the ETSformer model behaves:
Key settings:
- NumEncoderLayers: How many encoding layers to use for pattern extraction
- NumDecoderLayers: How many decoding layers for generating forecasts
- K: Top-K frequencies for seasonal pattern detection
- LevelSmoothing: Controls how quickly the model adapts to level changes
ETSformer is particularly interpretable because it explicitly models trend, seasonality, and growth components that you can inspect and understand.
How It Works
ETSformer (Exponential Smoothing Transformer) combines classical exponential smoothing methods with transformer attention mechanisms for interpretable time series forecasting.
Reference: Woo et al., “ETSformer: Exponential Smoothing Transformers for
Time-series Forecasting”, 2022. https://arxiv.org/abs/2202.01381
Constructors
| Constructor | Summary |
|---|---|
ETSformerOptions() |
Properties
| Property | Summary |
|---|---|
ILossFunction<T> LossFunction { get; set; } |
Gets or sets the loss function for training. |
bool UseInstanceNormalization { get; set; } |
Gets or sets whether to use instance normalization (RevIN). |
double Dropout { get; set; } |
Gets or sets the dropout rate. |
double LearningRate { get; set; } |
Gets or sets the learning rate. |
double LevelSmoothing { get; set; } |
Gets or sets the level smoothing factor (alpha). |
double SeasonalSmoothing { get; set; } |
Gets or sets the seasonal smoothing factor (gamma). |
double TrendSmoothing { get; set; } |
Gets or sets the trend smoothing factor (beta). |
int FeedForwardDimension { get; set; } |
Gets or sets the feedforward network dimension. |
int K { get; set; } |
Gets or sets the top-K frequencies for seasonal decomposition. |
int ModelDimension { get; set; } |
Gets or sets the model dimension (embedding size). |
int NumDecoderLayers { get; set; } |
Gets or sets the number of decoder layers. |
int NumEncoderLayers { get; set; } |
Gets or sets the number of encoder layers. |
int NumFeatures { get; set; } |
Gets or sets the number of input features. |
int NumHeads { get; set; } |
Gets or sets the number of attention heads. |
int PredictionHorizon { get; set; } |
Gets or sets the prediction horizon. |
int SequenceLength { get; set; } |
Gets or sets the input sequence length. |
Methods
| Method | Summary |
|---|---|
List<string> Validate() |
Validates the options and returns any validation errors. |