mlr3
mlr3 copied to clipboard
improve UX for as_task* (documentation and error handling)
When I have a dataset that I want to convert to a task, my first intuition would be to look up the help text of as_task
. However, it does not tell me much about what it is doing, or where to go to convert some data that I have to a task.
Error handling for as_task_classif
and related could also be improved:
as_task_classif(iris)
#> Error in .subset2(x, i, exact = exact) :
#> attempt to select less than one element in get1index