10

Is there a parameter like "scale_pos_weight" in catboost package as we used to have in the xgboost package in python ?

Harshit Mehta
  • 328
  • 1
  • 2
  • 11

3 Answers3

11

Yes, the parameter is named "class_weights", you can find it here : Documentation

You have to pass a list like [0.8, 0.2] for binary or [0.3, 0.8, 0.4, 0.6] for multiclass of 4 for example. Doesn't have to sum to 1, it's used as a multiplier.

Gaarv
  • 814
  • 8
  • 15
8

CatBoost also has scale_pos_weight parameter starting from version 0.6.1

2

Yes, you can use "auto_class_weights" and "scale_pos_weight" as described in original catboost documentations: https://catboost.ai/docs/concepts/python-reference_parameters-list.html

from_mars
  • 31
  • 3