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 Guillaume Lemaitre committed Dec 26, 2016
1 parent 9578b0a commit a8bb28d
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 @@ -186,7 +186,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 a8bb28d

Please sign in to comment.