Skip to contents

A mlr3misc::Dictionary of torch callbacks. Use t_clbk() to conveniently retrieve callbacks. Can be converted to a data.table using as.data.table.

Usage

mlr3torch_callbacks

Format

An object of class DictionaryMlr3torchCallbacks (inherits from Dictionary, R6) of length 13.

Examples

mlr3torch_callbacks$get("checkpoint")
#> <TorchCallback:checkpoint> Checkpoint
#> * Generator: CallbackSetCheckpoint
#> * Parameters: list()
#> * Packages: mlr3torch,torch
# is the same as
t_clbk("checkpoint")
#> <TorchCallback:checkpoint> Checkpoint
#> * Generator: CallbackSetCheckpoint
#> * Parameters: list()
#> * Packages: mlr3torch,torch
# convert to a data.table
as.data.table(mlr3torch_callbacks)
#> Key: <key>
#>                      key                                   label
#>                   <char>                                  <char>
#>  1:           checkpoint                              Checkpoint
#>  2:              history                                 History
#>  3:  lr_cosine_annealing           Cosine Annealing LR Scheduler
#>  4:            lr_lambda Multiplication by Function LR Scheduler
#>  5:    lr_multiplicative   Multiplication by Factor LR Scheduler
#>  6:         lr_one_cycle                      1cyle LR Scheduler
#>  7: lr_reduce_on_plateau          Reduce on Plateau LR Scheduler
#>  8:              lr_step                 Step Decay LR Scheduler
#>  9:             progress                                Progress
#> 10:                   tb                             TensorBoard
#> 11:             unfreeze                                Unfreeze
#>                     packages
#>                       <list>
#>  1:          mlr3torch,torch
#>  2:          mlr3torch,torch
#>  3:          mlr3torch,torch
#>  4:          mlr3torch,torch
#>  5:          mlr3torch,torch
#>  6:          mlr3torch,torch
#>  7:          mlr3torch,torch
#>  8:          mlr3torch,torch
#>  9: progress,mlr3torch,torch
#> 10: tfevents,mlr3torch,torch
#> 11:          mlr3torch,torch