Skip to content

Commit

Permalink
CondensedNearestNeighbour ValueError fix #208 (#209)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aliaksei Halachkin authored and glemaitre committed Dec 25, 2016
1 parent 75addb8 commit c747362
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion imblearn/under_sampling/condensed_nearest_neighbour.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ def _sample(self, X, y):
np.flatnonzero(pred_S_y == S_y)))

# Find the misclassified S_y
sel_x = np.squeeze(S_x[idx_maj_sample, :])
sel_x = S_x[idx_maj_sample, :]
sel_y = S_y[idx_maj_sample]

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

0 comments on commit c747362

Please sign in to comment.