MATLAB Answers

Using ADASYN with three classes

10 ビュー (過去 30 日間)
Uerm 2020 年 2 月 12 日
回答済み: Raunak Gupta 2020 年 2 月 17 日
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?

  0 件のコメント


回答 (1 件)

Raunak Gupta
Raunak Gupta 2020 年 2 月 17 日
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.

  0 件のコメント





Community Treasure Hunt

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

Start Hunting!

Translated by