NHiTSOptions<T>
Options & Configuration · AiDotNet.Models.Options
Configuration options for the N-HiTS (Neural Hierarchical Interpolation for Time Series) model.
Inheritance: ModelOptions → RegressionOptions<T> → TimeSeriesRegressionOptions<T> → NHiTSOptions<T>
For Beginners
N-HiTS is an advanced neural network for time series forecasting that works by looking at your data at multiple resolutions simultaneously - similar to how you might zoom in and out when analyzing a chart. This multi-scale approach helps it capture both short-term patterns (like daily fluctuations) and long-term trends (like seasonal cycles).
How It Works
N-HiTS is an evolution of N-BEATS that incorporates hierarchical interpolation and multi-rate signal sampling. It achieves better accuracy on long-horizon forecasting tasks while being more parameter-efficient. Key improvements over N-BEATS include:
- Hierarchical multi-rate data pooling for capturing patterns at different frequencies
- Interpolation-based basis functions for smoother forecasts
- More efficient parameter usage through stack-specific pooling
Constructors
| Constructor | Summary |
|---|---|
NHiTSOptions() |
Initializes a new instance of the NHiTSOptions class. |
NHiTSOptions(NHiTSOptions<T> other) |
Initializes a new instance by copying from another instance. |
Properties
| Property | Summary |
|---|---|
NHiTSInterpolationMode[] InterpolationModes { get; set; } |
Gets or sets the interpolation modes for each stack. |
NHiTSPoolingMode[] PoolingModes { get; set; } |
Gets or sets the pooling modes for each stack. |
double DropoutRate { get; set; } |
Gets or sets the dropout rate for regularization. |
double LearningRate { get; set; } |
Gets or sets the learning rate for training. |
int BatchSize { get; set; } |
Gets or sets the batch size for training. |
int Epochs { get; set; } |
Gets or sets the number of training epochs. |
int ForecastHorizon { get; set; } |
Gets or sets the forecast horizon (number of future time steps to predict). |
int HiddenLayerSize { get; set; } |
Gets or sets the hidden layer size for fully connected layers within each block. |
int LookbackWindow { get; set; } |
Gets or sets the lookback window size (number of historical time steps used as input). |
int NumBlocksPerStack { get; set; } |
Gets or sets the number of blocks per stack. |
int NumHiddenLayers { get; set; } |
Gets or sets the number of hidden layers within each block. |
int NumStacks { get; set; } |
Gets or sets the number of stacks in the N-HiTS architecture. |
int[] PoolingKernelSizes { get; set; } |
Gets or sets the pooling kernel sizes for each stack. |