2022 Developer Survey is open! Take survey.

New answers tagged

0 votes

Restrictions on my skewed validation data

It is best practice to not make any restrictions or manipulations just on a validation dataset, this includes removing categories or downsampling. Changing just the validation dataset has the ...
user avatar
3 votes

class weighted classification

Accuracy is by definition "weighted" according to the classes proportions: it counts the number of correct instances in the full dataset, so a class with N% of the instances represents N% of ...
user avatar
  • 21k
0 votes

Unbalanced multiclass data with XGBoost

The parameter scale_pos_weight works for two classes (binary classification). The parameter weight goes into the xgb.DMatrix function can be used for three or more classes. The weights can be computed ...
user avatar

Top 50 recent answers are included