Skip to content

Commit

Permalink
Revert "MNT Redundant code in optics (scikit-learn#13462)"
Browse files Browse the repository at this point in the history
This reverts commit 534e271.
  • Loading branch information
Xing committed Apr 28, 2019
1 parent a5aeb1e commit b43d7d0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sklearn/cluster/optics_.py
Expand Up @@ -465,7 +465,8 @@ def _set_reach_dist(core_distances_, reachability_, predecessor_,
return_distance=False)[0]

# Getting indices of neighbors that have not been processed
unproc = np.compress(~np.take(processed, indices), indices)
unproc = np.compress((~np.take(processed, indices)).ravel(),
indices, axis=0)
# Neighbors of current point are already processed.
if not unproc.size:
return
Expand Down

0 comments on commit b43d7d0

Please sign in to comment.