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?