allennlp.training.learning_rate_schedulers

AllenNLP just uses PyTorch learning rate schedulers, with a thin wrapper to allow registering them and instantiating them from_params.

The available learning rate schedulers are

class allennlp.training.learning_rate_schedulers.LearningRateScheduler[source]

Bases: allennlp.common.registrable.Registrable

This class just allows us to implement Registrable for Pytorch LRSchedulers.

classmethod from_params(optimizer: torch.optim.optimizer.Optimizer, params: allennlp.common.params.Params)[source]