Weighting strategy
All metrics will be weighted by the variable {{mlTaskDesign.weight.sampleWeightVariable}}, both for hyperparameters optimization and final evaluation of the model.

The settings define how each row in the train set is weighted:
  • No weighting: all rows will be considered equally.
  • Sample weights: row weights are defined by a column of the dataset (They must be positive).
  • Class weights: row weights are defined as inversely proportional to the cardinality of its target class.
  • Class and sample weights: row weights are defined as the product of sample weights and class weights.

In classification tasks, class weights is the default weighting method.
It is meant to ensure that despite class imbalance, the trained model takes each class equally into account.

In regression tasks, using no weighting is the default setting.

Averaging method for one-vs-all metrics