mlr3torch_losses | R Documentation |
Dictionary of torch loss descriptors.
See t_loss()
for conveniently retrieving a loss function.
Can be converted to a data.table
using
as.data.table
.
mlr3torch_losses
An object of class DictionaryMlr3torchLosses
(inherits from Dictionary
, R6
) of length 12.
cross_entropy, l1, mse
Other Torch Descriptor:
TorchCallback
,
TorchDescriptor
,
TorchLoss
,
TorchOptimizer
,
as_torch_callbacks()
,
as_torch_loss()
,
as_torch_optimizer()
,
mlr3torch_optimizers
,
t_clbk()
,
t_loss()
,
t_opt()
Other Dictionary:
mlr3torch_callbacks
,
mlr3torch_optimizers
,
t_opt()
mlr3torch_losses$get("mse")
# is equivalent to
t_loss("mse")
# convert to a data.table
as.data.table(mlr3torch_losses)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.