gluonts.torch.model.deepar.lightning_module 模块#
- class gluonts.torch.model.deepar.lightning_module.DeepARLightningModule(model_kwargs: dict, lr: float = 0.001, weight_decay: float = 1e-08, patience: int = 10)[源代码]#
基类:
lightning.pytorch.core.module.LightningModule
一个可用于使用 PyTorch Lightning 训练
DeepARModel
的pl.LightningModule
类。这是围绕(包装的)
DeepARModel
对象的一个薄层,公开了用于评估训练和验证损失的方法。- 参数
model_kwargs – 用于构建要训练的
DeepARModel
的关键字参数。loss – 用于训练的损失函数。
lr – 学习率。
weight_decay – 权重衰减正则化参数。
patience – 学习率调度器的 patience 参数。