as_task_classif(data.frame(x = factor(c("a", "b", "a", "b"), levels = c("a", "b")), y = factor(c("a", "b", "a", "b"), levels = c("a", "b"))))
#> Error in .subset2(x, i, exact = exact) :
#> attempt to select less than one element in get1index
should inform the user that the problem is the missing target?
should inform the user that the problem is the missing target?