Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle label imbalance in binary classification tasks on text benchmark #376

Merged
merged 2 commits into from
Mar 11, 2024

Conversation

vid-koci
Copy link
Contributor

@vid-koci vid-koci commented Mar 11, 2024

Labels in the text benchmarks are imbalanced and weighting the positive labels improves performance.
Experiments done on fake dataset (5% positive labels) with text_embedded and RoBERTa encodings:

  • ResNet result changes 91.1% -> 93.4%
  • FTTransformer result remains unchanged
  • Trompt result changes 95.2% -> 95.8%

The differences were even more stark with distilled roberta, but we aren't reporting those anywhere so I didn't note them down.

More results are pending

Copy link

codecov bot commented Mar 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.52%. Comparing base (893678f) to head (3801ffd).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #376   +/-   ##
=======================================
  Coverage   93.52%   93.52%           
=======================================
  Files         124      124           
  Lines        6451     6451           
=======================================
  Hits         6033     6033           
  Misses        418      418           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@weihua916 weihua916 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@weihua916 weihua916 merged commit 96bdf12 into master Mar 11, 2024
14 checks passed
@weihua916 weihua916 deleted the vid_label_imbalance branch March 11, 2024 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants