Using ADASYN with three classes

11 次查看(过去 30 天)
Uerm
Uerm 2020-2-12
Hi,
I have a feature matrix where the first 456 columns are features and the last column is a label column. Because the dataset is highly imbalanced, I want to do oversampling of the minority classes using ADASYN. My feature matrix contains three classes: 0, 1 and 2 where 1 and 2 are the minority classes. I want to oversample them such that they have approximately the same "length" as the majority class.
I know that there is an ADASYN function in the File Exchanger and I have used it previously for two class problems as the function can only process two classes at a time.
Is there any way that I can use the function with three classes?
Thanks!

回答(1 个)

Raunak Gupta
Raunak Gupta 2020-2-17
Hi,
From the example above I understand that Multiple classes are not supported for Oversampling techniques. Hence, I would suggest adding error weights to each class or use ensemble classifier from Statistics and Machine Learning Toolbox. Error weight can be equal to reciprocal of the number of samples of the category. If you are using shallow neural network this will help.
For Ensemble Classifiers you may find following useful.

产品


版本

R2019b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by