Technique for balancing imbalanced datasets by reducing the number of samples in the majority class. This is done by randomly removing samples from the majority class until a more balanced distribution is reached.
In this code: Specifies to undersample majority data.
Random Oversampling:
Technique to create a more balanced class distribution by increasing the number of samples in the minority class.
ADASYN:
ADASYN creates synthetic samples for the minority class. However, it goes a step further by adaptively generating these samples. It considers the local density information of the minority class when creating new data points.
Technique for balancing imbalanced datasets by reducing the number of samples in the majority class. This is done by randomly removing samples from the majority class until a more balanced distribution is reached.
In this code: Specifies to undersample majority data.