narek-davtyan / LoRAS

Localized Randomized Affine Shadowsampling (LoRAS) oversampling technique
MIT License
9 stars 13 forks source link

LoRAS with 3 classes #1

Open hashmiuk opened 3 years ago

hashmiuk commented 3 years ago

How to use LoRAS with 3 classes dataset like Twitter US Airline Sentiment (https://www.kaggle.com/crowdflower/twitter-airline-sentiment). When am run it gave me zeros for the third class.

[[1024 865 0] [ 249 331 0] [ 197 262 0]] precision recall f1-score support

       0       0.70      0.54      0.61      1889
       1       0.23      0.57      0.32       580
       2       0.00      0.00      0.00       459

accuracy                           0.46      2928

macro avg 0.31 0.37 0.31 2928 weighted avg 0.49 0.46 0.46 2928

0.46277322404371585

zoj613 commented 3 years ago

@hashmiuk I wrote an implementation at https://github.com/zoj613/pyloras that supports multiple classes.