Skip to content

Commit 28663da

Browse files
committed
DOC
1 parent 318ee01 commit 28663da

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

doc/over_sampling.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ a classifier::
4040

4141
>>> from sklearn.svm import LinearSVC
4242
>>> clf = LinearSVC()
43-
>>> clf.fit(X_resampled, y_resampled) # doctest :
43+
>>> clf.fit(X_resampled, y_resampled)
4444
LinearSVC(...)
4545

4646
In the figure below, we compare the decision functions of a classifier trained

imblearn/metrics/_classification.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -856,9 +856,8 @@ def classification_report_imbalanced(
856856
>>> import numpy as np
857857
>>> from imblearn.metrics import classification_report_imbalanced
858858
>>> y_true = [0, 1, 2, 2, 2]
859-
>>> y_pred = [0, 0, 2, 2, 1] # doctest :
860-
>>> target_names = ['class 0', 'class 1', \
861-
'class 2'] # doctest :
859+
>>> y_pred = [0, 0, 2, 2, 1]
860+
>>> target_names = ['class 0', 'class 1', 'class 2']
862861
>>> print(classification_report_imbalanced(y_true, y_pred, \
863862
target_names=target_names))
864863
pre rec spe f1 geo iba\

imblearn/under_sampling/_prototype_selection/_edited_nearest_neighbours.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,8 +272,7 @@ class RepeatedEditedNearestNeighbours(BaseCleaningSampler):
272272
--------
273273
>>> from collections import Counter
274274
>>> from sklearn.datasets import make_classification
275-
>>> from imblearn.under_sampling import \
276-
RepeatedEditedNearestNeighbours # doctest :
275+
>>> from imblearn.under_sampling import RepeatedEditedNearestNeighbours
277276
>>> X, y = make_classification(n_classes=2, class_sep=2,
278277
... weights=[0.1, 0.9], n_informative=3, n_redundant=1, flip_y=0,
279278
... n_features=20, n_clusters_per_class=1, n_samples=1000, random_state=10)

0 commit comments

Comments
 (0)