Skip to content

Commit

Permalink
OPTICS remove redundant recursion (scikit-learn#11985)
Browse files Browse the repository at this point in the history
  • Loading branch information
adrinjalali authored and rth committed Sep 8, 2018
1 parent 79f5d14 commit e5333f5
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions sklearn/cluster/optics_.py
Original file line number Diff line number Diff line change
Expand Up @@ -680,10 +680,6 @@ def _cluster_tree(node, parent_node, local_maxima_points,
if reachability_plot[s] < significant_min:
node.split_point = -1
# if split_point is not significant, ignore this split and continue
_cluster_tree(node, parent_node, local_maxima_points,
reachability_plot, reachability_ordering,
min_cluster_size, maxima_ratio, rejection_ratio,
similarity_threshold, significant_min)
return

# only check a certain ratio of points in the child
Expand Down

0 comments on commit e5333f5

Please sign in to comment.