mlr3 icon indicating copy to clipboard operation
mlr3 copied to clipboard

improve UX for as_task* (documentation and error handling)

Open mb706 opened this issue 1 year ago • 0 comments

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

mb706 avatar Jun 18 '23 10:06 mb706