logo
  • Getting Started
  • User Guide
  • API reference
  • Examples
  • Release history
  • About us
logo

Version 0.8.0.dev0

Edit this page

imblearn.under_sampling.TomekLinks.fit¶

TomekLinks.fit(X, y)[source]¶

Check inputs and statistics of the sampler.

You should use fit_resample in all cases.

Parameters
X{array-like, dataframe, sparse matrix} of shape (n_samples, n_features)

Data array.

yarray-like of shape (n_samples,)

Target array.

Returns
selfobject

Return the instance itself.

© Copyright 2014-2021, The imbalanced-learn developers.
Created using Sphinx 3.5.0.