Under-sampling Samplers

The imbalanced_ensemble.sampler.under_sampling submodule contains methods to under-sample a dataset.

ClusterCentroids(*[, sampling_strategy, ...])

Undersample by generating centroids based on clustering methods.

RandomUnderSampler(*[, sampling_strategy, ...])

Class to perform random under-sampling.

InstanceHardnessThreshold(*[, estimator, ...])

Undersample based on the instance hardness threshold.

NearMiss(*[, sampling_strategy, version, ...])

Class to perform under-sampling based on NearMiss methods.

TomekLinks(*[, sampling_strategy, n_jobs])

Under-sampling by removing Tomek's links.

EditedNearestNeighbours(*[, ...])

Undersample based on the edited nearest neighbour method.

RepeatedEditedNearestNeighbours(*[, ...])

Undersample based on the repeated edited nearest neighbour method.

AllKNN(*[, sampling_strategy, n_neighbors, ...])

Undersample based on the AllKNN method.

OneSidedSelection(*[, sampling_strategy, ...])

Class to perform under-sampling based on one-sided selection method.

CondensedNearestNeighbour(*[, ...])

Undersample based on the condensed nearest neighbour method.

NeighbourhoodCleaningRule(*[, ...])

Undersample based on the neighbourhood cleaning rule.

BalanceCascadeUnderSampler(*[, ...])

Class to perform under-sampling for BalanceCascade in [R4d2584dbf2bf-1].

SelfPacedUnderSampler(*[, ...])

Class to perform self-paced under-sampling in [R58fe15894bd9-1].