mlr3pipelines
mlr3pipelines copied to clipboard
How to use classweights for a multiclass outcome?
The documentation says
classweights adds a class weight column.
Sample weights are added to each sample according to the target class.
Only binary classification tasks are supported.
Then, how can we generate a classweights column with mlr3 if we have a multiclass outcome?