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                 packages
#>        <char>     <char>                   <char>
#> 1: checkpoint Checkpoint          mlr3torch,torch
#> 2:    history    History          mlr3torch,torch
#> 3:   progress   Progress progress,mlr3torch,torch