Skip to content

Commit a8bb28d

Browse files
Aliaksei HalachkinGuillaume Lemaitre
Aliaksei Halachkin
authored and
Guillaume Lemaitre
committed
CondensedNearestNeighbour ValueError fix #208 (#209)
1 parent 9578b0a commit a8bb28d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

imblearn/under_sampling/condensed_nearest_neighbour.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ def _sample(self, X, y):
186186
np.flatnonzero(pred_S_y == S_y)))
187187

188188
# Find the misclassified S_y
189-
sel_x = np.squeeze(S_x[idx_maj_sample, :])
189+
sel_x = S_x[idx_maj_sample, :]
190190
sel_y = S_y[idx_maj_sample]
191191

192192
# The indexes found are relative to the current class, we need to

0 commit comments

Comments
 (0)