- class composer.callbacks.LRMonitor#
Logs the learning rate.
This callback iterates over all optimizers and their parameter groups to log learning rate under the
>>> from composer import Trainer >>> from composer.callbacks import LRMonitor >>> # constructing trainer object with this callback >>> trainer = Trainer( ... model=model, ... train_dataloader=train_dataloader, ... eval_dataloader=eval_dataloader, ... optimizers=optimizer, ... max_duration="1ep", ... callbacks=[LRMonitor()], ... )
The learning rate is logged by the
Loggerto the following key as described below.
Learning rate for each optimizer and parameter group for that optimizer is logged to a separate key.