The table below shows all loss functions that are available in mlr3torch
.
library(data.table) library(mlr3torch) content = as.data.table(mlr3torch::mlr3torch_losses)[, c("key", "label", "task_types")] content$key = sapply(content$key, function(key) sprintf("[%s](https://torch.mlverse.org/docs/reference/%s)", key, gsub("torch::", "", t_loss(key)$man))) names(content) = c("Key", "Label", "Task Type") knitr::kable(content)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.