mlr3 icon indicating copy to clipboard operation
mlr3 copied to clipboard

Tests / Checks for flipped factors

Open sebffischer opened this issue 1 year ago • 1 comments

I can imagine that some learner's don't handle factors with flipped levels perfectly. A proposal would be to add an autotest that checks whether predictions are equivalent irrespective of the underlying factor representation. Then, there could be a learner property that indicates whether the learner can deal with flipped factor levels. In the $predict_newdata() and the $predict() method we could then (depending on whether this property is present) throw an error.

sebffischer avatar Jul 14 '23 17:07 sebffischer