Utilities

The imblearn.utils module includes various utilities.

Validation checks used in samplers

check_neighbors_object(nn_name, nn_object[, …])

Check the objects is consistent to be a NN.

check_sampling_strategy(sampling_strategy, …)

Sampling target validation for samplers.

check_target_type(y[, indicate_one_vs_all])

Check the target types to be conform to the current samplers.

Testing compatibility of your own sampler