10000 OPTICS remove redundant recursion (#11985) · scikit-learn/scikit-learn@e5333f5 · GitHub
[go: up one dir, main page]

Skip to content

Commit e5333f5

Browse files
adrinjalalirth
authored andcommitted
OPTICS remove redundant recursion (#11985)
1 parent 79f5d14 commit e5333f5

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

sklearn/cluster/optics_.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -680,10 +680,6 @@ def _cluster_tree(node, parent_node, local_maxima_points,
680680
if reachability_plot[s] < significant_min:
681681
node.split_point = -1
682682
# if split_point is not significant, ignore this split and continue
683-
_cluster_tree(node, parent_node, local_maxima_points,
684-
reachability_plot, reachability_ordering,
685-
min_cluster_size, maxima_ratio, rejection_ratio,
686-
similarity_threshold, significant_min)
687683
return
688684

689685
# only check a certain ratio of points in the child

0 commit comments

Comments
 (0)
0