Skip to content

Commit 7a6a095

Browse files
authored
Merge pull request #508 from GregDemand/master
Incorrect initialization in BallTreeBoruvka dual_tree_traversal
2 parents 18f1169 + 8ca70a6 commit 7a6a095

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

hdbscan/_hdbscan_boruvka.pyx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1283,7 +1283,8 @@ cdef class BallTreeBoruvkaAlgorithm (object):
12831283
# propagate the results up the tree.
12841284
if node1_info.is_leaf and node2_info.is_leaf:
12851285

1286-
new_bound = 0.0
1286+
new_upper_bound = 0.0
1287+
new_lower_bound = DBL_MAX
12871288

12881289
point_indices1 = self.idx_array[node1_info.idx_start:
12891290
node1_info.idx_end]

0 commit comments

Comments
 (0)