SeasonalityBasis¶
- class SeasonalityBasis(harmonics: int, backcast_size: int, forecast_size: int)[source]¶
Bases:
torch.nn.modules.module.Module
Harmonic seasonality basis function.
Initialize seasonality basis function.
- Parameters
harmonics (int) – Harmonics range.
backcast_size (int) – Number of backcast values.
forecast_size (int) – Number of forecast values.
Methods
forward
(theta)Forward pass.
Attributes
- forward(theta: torch.Tensor) Tuple[torch.Tensor, torch.Tensor] [source]¶
Forward pass.
- Parameters
theta (torch.Tensor) – Basis function parameters.
- Returns
Tuple with backcast and forecast.
- Return type
Tuple[torch.Tensor, torch.Tensor]