1

I have 3 classes and my weights are
Class 1: 1
Class 2: 0.333
Class 3: 0.167

How do I input them into the scale_pos_weight parameter?

I know for a binary classification, we input it like below:

model = XGBClassifier(scale_pos_weight=99)
Peter
  • 179
  • 1
  • 2
  • 11

0 Answers0