t_opt {mlr3torch} | R Documentation |
Optimizers Quick Access
Description
Retrieves one or more TorchOptimizer
s from mlr3torch_optimizers
.
Works like mlr3::lrn()
and mlr3::lrns()
.
Usage
t_opt(.key, ...)
t_opts(.keys, ...)
Arguments
.key |
( |
... |
(any) |
.keys |
( |
Value
See Also
Other Torch Descriptor:
TorchCallback
,
TorchDescriptor
,
TorchLoss
,
TorchOptimizer
,
as_torch_callbacks()
,
as_torch_loss()
,
as_torch_optimizer()
,
mlr3torch_losses
,
mlr3torch_optimizers
,
t_clbk()
,
t_loss()
Other Dictionary:
mlr3torch_callbacks
,
mlr3torch_losses
,
mlr3torch_optimizers
Examples
t_opt("adam", lr = 0.1)
# get the dictionary
t_opt()
t_opts(c("adam", "sgd"))
# get the dictionary
t_opts()
[Package mlr3torch version 0.1.0 Index]