Skip to content

Commit 0800b0b

Browse files
authored
Fix for #231 and #277
This has been hanging around a while, but it seems like it is easy enough to just force this issue directly at creation time.
1 parent 5805e17 commit 0800b0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hdbscan/prediction.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def _recurse_leaf_dfs(self, current_node):
9898

9999
def __init__(self, data, condensed_tree, min_samples,
100100
tree_type='kdtree', metric='euclidean', **kwargs):
101-
self.raw_data = data
101+
self.raw_data = data.astype(np.float64)
102102
self.tree = self._tree_type_map[tree_type](self.raw_data,
103103
metric=metric, **kwargs)
104104
self.core_distances = self.tree.query(data, k=min_samples)[0][:, -1]

0 commit comments

Comments
 (0)