110627: The following classes cannot reach the smaller class size: <value>.

Description

When using K-Medoids undersampling, the classes in the dependent variable cannot be balanced to equal counts due to limitations of the K-Medoids method when applied with categorical explanatory variables.

Solution

Use a different balancing method such as Random Undersampling, Random Oversampling, or SMOTE Oversampling to guarantee equal counts of each categorical level in the dependent variable.