Search code examples
python-3.xcatboost

for Imbalanced data dealing with cat boost


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


Solution

  • 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.