| as_task_torch | R Documentation |
Creates a TaskTorch, the general-purpose task type of mlr3torch, from a data.frame() or a
DataBackend.
See the Custom Learning Problems article for more information.
as_task_torch(x, target = NULL, id = deparse(substitute(x))[1L], ...)
x |
( |
target |
( |
id |
( |
... |
(any) |
TaskTorch
# multi-output regression
d = data.frame(x = rnorm(50))
d$y1 = d$x + rnorm(50)
d$y2 = 2 * d$x + rnorm(50)
as_task_torch(d, target = c("y1", "y2"))
# unsupervised: no target at all
as_task_torch(data.frame(a = rnorm(50), b = rnorm(50)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.