powered by
Extends int_dia by adding imbalance-specific models (EasyEnsemble). Produces a comprehensive set of models optimized for imbalanced datasets.
int_dia
int_imbalance( ..., model_names = NULL, tune = TRUE, n_estimators = 10, seed = 123, positive_label_value = 1, negative_label_value = 0, new_positive_label = "Positive", new_negative_label = "Negative" )
Same structure as int_dia with additional imbalance-handling models.
Data frames for analysis. The first is the training dataset; all subsequent arguments are test datasets.
Character vector specifying which models to use. If NULL (default), uses all registered models.
Logical, enable hyperparameter tuning. Default TRUE.
Integer, number of bootstrap samples for bagging. Default 10.
Integer for reproducibility. Default 123.
Value representing positive class. Default 1.
Value representing negative class. Default 0.
Factor level name for positive class. Default "Positive".
Factor level name for negative class. Default "Negative".
if (FALSE) { imbalanced_results <- int_imbalance(train_imbalanced, test_imbalanced) }
Run the code above in your browser using DataLab