Closed siyanew closed 3 years ago
There are two ways to adjust the class weight for training the binary classifier.
(1) Tune Cp
and Cn
in the MLModel (https://github.com/amzn/pecos/blob/mainline/pecos/xmc/base.py#L554). This will give different class weight for the positive instances and negative instances of that label.
(2) Tune the Relevance matrix (#instances by #labels) for cost-senstive learning in MLProblem (https://github.com/amzn/pecos/blob/mainline/pecos/xmc/base.py#L436).
Hi,
Is there any way to pass the class weight to this model to have better result in imbalance dataset?
Thanks