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.
2 parents eeb2622 + 3f5b573 commit 15cb7dcCopy full SHA for 15cb7dc
fast_hdbscan/branches.py
@@ -6,7 +6,8 @@ def compute_centrality(data, probabilities, *args):
6
points = args[-1]
7
cluster_data = data[points, :]
8
centroid = np.average(cluster_data, weights=probabilities[points], axis=0)
9
- return 1 / np.linalg.norm(cluster_data - centroid[None, :], axis=1)
+ with np.errstate(divide="ignore"):
10
+ return 1 / np.linalg.norm(cluster_data - centroid[None, :], axis=1)
11
12
13
def apply_branch_threshold(
0 commit comments