10000 remove redundant recursion · scikit-learn/scikit-learn@e414965 · GitHub
[go: up one dir, main page]

Skip to content

Commit e414965

Browse files
committed
remove redundant recursion
1 parent 721ebae commit e414965

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
@@ -685,10 +685,6 @@ def _cluster_tree(node, parent_node, local_maxima_points,
685685
if reachability_plot[s] < significant_min:
686686
node.assign_split_point(-1)
687687
# if split_point is not significant, ignore this split and continue
688-
_cluster_tree(node, parent_node, local_maxima_points,
689-
reachability_plot, reachability_ordering,
690-
min_cluster_size, maxima_ratio, rejection_ratio,
691-
similarity_threshold, significant_min)
692688
return
693689

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

0 commit comments

Comments
 (0)
0