Hi,
I am using DeepTab for a binary classification task with highly imbalanced data.
For example:
- Class 0: 90%
- Class 1: 10%
How can I apply class weighting during training?
In LightGBM, I would typically use scale_pos_weight, and in PyTorch I can use BCEWithLogitsLoss(pos_weight=...).
Does DeepTab provide a built-in way to handle class imbalance, such as:
- class weights
- sample weights
- weighted loss functions
- weighted sampling
If so, could you provide an example?
Thank you.
Hi,
I am using DeepTab for a binary classification task with highly imbalanced data.
For example:
How can I apply class weighting during training?
In LightGBM, I would typically use
scale_pos_weight, and in PyTorch I can useBCEWithLogitsLoss(pos_weight=...).Does DeepTab provide a built-in way to handle class imbalance, such as:
If so, could you provide an example?
Thank you.