Data Science Asked by Ayushi Chaplot on April 7, 2021
I am trying to solve multi-class imbalance classification problem for that i am using SMOTE for oversampling and OSS for under-sampling. But I have a doubt as I am working on multi-class so i have to convert it into binary classification. So we can convert it using OVA/OAA. So how can I use OVA/OAA with both under-sampling and oversampling on the same data-set.
Please solve my problem, It will be a great help.
If you convert your problem to a binary classification task, you do not need to worry about any conflict with re-sampling techniques. You can then just use the imblearn.combine
which combines Oversampling and under-sampling in one algorithm. There are classes available for this but I have found SMOTEENN
to produce better results. SMOTEENN
Answered by mbass on April 7, 2021
I am not sure why you need to convert your classification task to binary sub-tasks. Using the SMOTE/SMOTEENN libraries in Python, you can oversample/undersample all of the classes in one line of code. Also, if you have categorical features in your feature set, you may need to take a look at SMOTE-NC approach too, as SMOTE and SMOTEENN are purely distance-based and underestimate the role and value of Categorical features.
Answered by Sarah on April 7, 2021
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP