Skip to content

Commit

Permalink
Remove doctest for cnn
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillaume Lemaitre committed Jul 11, 2016
1 parent d66e1a3 commit 3fb8b25
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions imblearn/under_sampling/condensed_nearest_neighbour.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,21 +64,6 @@ class CondensedNearestNeighbour(SamplerMixin):
This class supports multi-class.
Examples
--------
>>> from collections import Counter
>>> from sklearn.datasets import fetch_mldata
>>> from imblearn.under_sampling import CondensedNearestNeighbour
>>> pima = fetch_mldata('diabetes_scale')
>>> X, y = pima['data'], pima['target']
>>> print('Original dataset shape {}'.format(Counter(y)))
Original dataset shape Counter({1: 500, -1: 268})
>>> cnn = CondensedNearestNeighbour(random_state=42)
>>> X_res, y_res = cnn.fit_sample(X, y)
>>> print('Resampled dataset shape {}'.format(Counter(y_res)))
Resampled dataset shape Counter({-1: 268, 1: 227})
References
----------
.. [1] P. Hart, "The condensed nearest neighbor rule,"
Expand Down

0 comments on commit 3fb8b25

Please sign in to comment.