t_loss {mlr3torch} | R Documentation |
Loss Function Quick Access
Description
Retrieve one or more TorchLoss
es from mlr3torch_losses
.
Works like mlr3::lrn()
and mlr3::lrns()
.
Usage
t_loss(.key, ...)
t_losses(.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_opt()
Examples
t_loss("mse", reduction = "mean")
# get the dictionary
t_loss()
t_losses(c("mse", "l1"))
# get the dictionary
t_losses()
[Package mlr3torch version 0.1.0 Index]