Skip to content

imbalanced data #385

@kike-0304

Description

@kike-0304

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.

Metadata

Metadata

Assignees

Labels

questionFurther information is requested

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions