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