gluonts.torch.model.lag_tst.lightning_module module#
- class gluonts.torch.model.lag_tst.lightning_module.LagTSTLightningModule(model_kwargs: dict, lr: float = 0.001, weight_decay: float = 1e-08)[source]#
Bases:
lightning.pytorch.core.module.LightningModuleA
pl.LightningModuleclass that can be used to train aLagTSTModelwith PyTorch Lightning.This is a thin layer around a (wrapped)
LagTSTModelobject, that exposes the methods to evaluate training and validation loss.- Parameters
model_kwargs – Keyword arguments to construct the
LagTSTModelto be trained.loss – Loss function to be used for training.
lr – Learning rate.
weight_decay – Weight decay regularization parameter.