Datasets

The imbalanced_ensemble.datasets provides methods to generate imbalanced data.

make_imbalance(X, y, *[, sampling_strategy, ...])

Turns a dataset into an imbalanced dataset with a specific sampling strategy.

generate_imbalance_data([n_samples, ...])

Generate a random n-classes imbalanced classification problem.

fetch_datasets(*[, data_home, filter_data, ...])

Load the benchmark datasets from Zenodo, downloading it if necessary.