gluonts.torch.model.lag_tst.lightning_module 模块#
- class gluonts.torch.model.lag_tst.lightning_module.LagTSTLightningModule(model_kwargs: dict, lr: float = 0.001, weight_decay: float = 1e-08)[source]#
一个
pl.LightningModule
类,可用于使用 PyTorch Lightning 训练LagTSTModel
。这是 (封装的)
LagTSTModel
对象的薄层封装,公开了用于评估训练和验证损失的方法。参数
- model_kwargs – 构建要训练的
LagTSTModel
的关键字参数。
-
与
torch.nn.Module.forward()
相同。 *args – 您决定传递给 forward 方法的任何参数。
- model_kwargs – 构建要训练的