mlr3
mlr3 copied to clipboard
as_task_xxx should enable setting weights ect
I think making this work would be a good user-friendly change, what do you think?
iris$weight = runif(150)
task = as_task_classif(iris, target = "Species", weight = "weight")
@mllg What do you think? It might be a little tricky with column roles that can (meaningfully) have more than 1 role.
What about the other column roles like order, stratum, group or name?
See my comment above. I think this is actually not a great idea.
But weight can also be a feature?
yes, my comment was in general that this is not really a good idea. I am closing