mlr3pipelines icon indicating copy to clipboard operation
mlr3pipelines copied to clipboard

How to use classweights for a multiclass outcome?

Open skanskan opened this issue 2 years ago • 0 comments

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?

skanskan avatar Jul 22 '23 15:07 skanskan