mlr3 icon indicating copy to clipboard operation
mlr3 copied to clipboard

as_task_xxx should enable setting weights ect

Open sebffischer opened this issue 2 years ago • 1 comments

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")

sebffischer avatar Jul 19 '22 16:07 sebffischer

@mllg What do you think? It might be a little tricky with column roles that can (meaningfully) have more than 1 role.

sebffischer avatar Jul 27 '22 08:07 sebffischer

What about the other column roles like order, stratum, group or name?

mllg avatar Sep 09 '22 08:09 mllg

See my comment above. I think this is actually not a great idea.

sebffischer avatar Sep 09 '22 08:09 sebffischer

But weight can also be a feature?

mllg avatar Sep 09 '22 12:09 mllg

yes, my comment was in general that this is not really a good idea. I am closing

sebffischer avatar Sep 09 '22 14:09 sebffischer