We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2cfa1d3 commit 4b52a3aCopy full SHA for 4b52a3a
hdbscan/_hdbscan_boruvka.pyx
@@ -148,10 +148,8 @@ cdef class BoruvkaAlgorithm (object):
148
node_info = self.tree.node_data[n]
149
if node_info.is_leaf:
150
point_indices = idx_array[node_info.idx_start:node_info.idx_end]
151
- b1 = nn_dist[point_indices].max()
152
- # b1 = self.core_distance_arr[point_indices].max()
+ b1 = nn_dist[point_indices].max() # b1 = self.core_distance_arr[point_indices].max()
153
b2 = (nn_dist[point_indices] + 2 * node_info.radius).min()
154
- # b2 = (self.core_distance_arr[point_indices] + 2 * node_info.radius).min()
155
self.bounds[n] = min(b1, b2)
156
else:
157
child1 = 2 * n + 1
0 commit comments