imblearn.under_sampling.NeighbourhoodCleaningRule.fit¶
-
NeighbourhoodCleaningRule.
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.