Source code for imblearn.under_sampling.prototype_selection.tomek_links

"""Class to perform under-sampling by removing Tomek's links."""

# Authors: Guillaume Lemaitre <g.lemaitre58@gmail.com>
#          Fernando Nogueira
#          Christos Aridas
# License: MIT

from __future__ import division, print_function

import numpy as np
from sklearn.neighbors import NearestNeighbors

from ..base import BaseCleaningSampler