Skip to content

Commit

Permalink
ignore self neighbors from the start
Browse files Browse the repository at this point in the history
  • Loading branch information
JelmerBot committed Dec 24, 2024
1 parent fc49ae9 commit 489084b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion fast_hdbscan/branches.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ def detect_branches_in_clusters(
data,
cluster_labels,
cluster_probabilities,
clusterer._neighbors,
clusterer._neighbors[:, 1:],
clusterer._core_distances,
clusterer._min_spanning_tree,
num_clusters,
Expand Down
2 changes: 1 addition & 1 deletion fast_hdbscan/core_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def knn_mst_union(neighbors, core_distances, min_spanning_tree, lens_values):
children = graph[point]
parent_lens = lens_values[point]
parent_dist = core_distances[point]
for child in neighbors[point, 1:]:
for child in neighbors[point]:
if child < 0:
continue
children[child] = (
Expand Down

0 comments on commit 489084b

Please sign in to comment.