luz_callback_lr_scheduler | R Documentation |
Initializes and runs torch::lr_scheduler()
s.
luz_callback_lr_scheduler(
lr_scheduler,
...,
call_on = "on_epoch_end",
opt_name = NULL
)
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 |
A luz_callback()
generator.
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_mixed_precision()
,
luz_callback_mixup()
,
luz_callback_model_checkpoint()
,
luz_callback_profile()
,
luz_callback_progress()
,
luz_callback_resume_from_checkpoint()
,
luz_callback_train_valid()
,
luz_callback()
if (torch::torch_is_installed()) {
cb <- luz_callback_lr_scheduler(torch::lr_step, step_size = 30)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.