Skip to content

Commit ef10257

Browse files
author
Richárd Krisztián Csáky
authored
fixed numpy float64 issue
1 parent 0800b0b commit ef10257

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

hdbscan/prediction.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -443,6 +443,7 @@ def membership_vector(clusterer, points_to_predict):
443443
:py:func:`hdbscan.predict.all_points_membership_vectors`
444444
"""
445445

446+
points_to_predict = points_to_predict.astype(np.float64)
446447
clusters = np.array(
447448
sorted(list(clusterer.condensed_tree_._select_clusters()))).astype(np.intp)
448449

0 commit comments

Comments
 (0)