| luz_callback_lr_scheduler {luz} | R Documentation | 
Learning rate scheduler callback
Description
Initializes and runs torch::lr_scheduler()s.
Usage
luz_callback_lr_scheduler(
  lr_scheduler,
  ...,
  call_on = "on_epoch_end",
  opt_name = NULL
)
Arguments
| lr_scheduler | A  | 
| ... | Additional arguments passed to  | 
| call_on | The callback breakpoint that  | 
| opt_name | name of the optimizer that will be affected by this callback.
Should match the name given in  | 
Value
A luz_callback() generator.
See Also
Other luz_callbacks: 
luz_callback_auto_resume(),
luz_callback_csv_logger(),
luz_callback_early_stopping(),
luz_callback_interrupt(),
luz_callback_keep_best_model(),
luz_callback_metrics(),
luz_callback_mixup(),
luz_callback_model_checkpoint(),
luz_callback_profile(),
luz_callback_progress(),
luz_callback_resume_from_checkpoint(),
luz_callback_train_valid(),
luz_callback()
Examples
if (torch::torch_is_installed()) {
cb <- luz_callback_lr_scheduler(torch::lr_step, step_size = 30)
}