Data balance. Most classes adopt random undersampling, while a few classes adopt smote method to oversample to obtain relatively balanced data.
mi_balance_data(data, ratio = 0.3, parallel = FALSE)A list contains a train set and a test set.
A data frame. Except for class column, all are numeric types.
Numeric between 0 and 1. The percent of the test set split from data.
Logical.