Under-Sampling

CondensedNearestNeighbour/EditedNearestNeighbours/Rep. EditedNearestNeighbours/ AllKNN/InstanceHardnessThreshold/NearMiss/NeighbourhoodCleaningRule/OneSidedSelection/ RandomUnderSampler/TomekLinks

Common

Input Data

Inputs

*Target Data

Data input

*Sampler

Name of the user-defined sampler module

*Predict Output

Name of the re-sampled data

*x

Columns (features) to be re-sampled by the sampler, with respect to their labels y.

  • Data type:

    • RamdomUnderSampler: all data type.

    • else: numeric.

  • One or more columns should be selected.

*y

Column containing labels of the features x.

  • Only one column should be selected.

Python Package

CondensedNearestNeighbour: https://imbalanced-learn.readthedocs.io/en/stable/generated/imblearn.under_sampling.CondensedNearestNeighbour.html#

EditedNearestNeighbours: https://imbalanced-learn.readthedocs.io/en/stable/generated/imblearn.under_sampling.EditedNearestNeighbours.html

Rep. EditedNearestNeighbours: https://imbalanced-learn.readthedocs.io/en/stable/generated/imblearn.under_sampling.RepeatedEditedNearestNeighbours.html

AllKNN: https://imbalanced-learn.readthedocs.io/en/stable/generated/imblearn.under_sampling.AllKNN.html

InstanceHardnessThreshold: https://imbalanced-learn.readthedocs.io/en/stable/generated/imblearn.under_sampling.InstanceHardnessThreshold.html

NearMiss: https://imbalanced-learn.readthedocs.io/en/stable/generated/imblearn.under_sampling.NearMiss.html

NeighbourhoodCleaningRule: https://imbalanced-learn.readthedocs.io/en/stable/generated/imblearn.under_sampling.NeighbourhoodCleaningRule.html

OneSidedSelection: https://imbalanced-learn.readthedocs.io/en/stable/generated/imblearn.under_sampling.OneSidedSelection.html

RandomUnderSampler: https://imbalanced-learn.readthedocs.io/en/stable/generated/imblearn.under_sampling.RandomUnderSampler.html

TomekLinks: https://imbalanced-learn.readthedocs.io/en/stable/generated/imblearn.under_sampling.TomekLinks.html

Last updated