Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions hdbscan/hdbscan_.py
Original file line number Diff line number Diff line change
Expand Up @@ -764,7 +764,7 @@ def hdbscan(

# Checks input and converts to an nd-array where possible
if metric != "precomputed" or issparse(X):
X = check_array(X, accept_sparse="csr", force_all_finite=False)
X = check_array(X, accept_sparse="csr", ensure_all_finite=False)
else:
# Only non-sparse, precomputed distance matrices are handled here
# and thereby allowed to contain numpy.inf for missing distances
Expand Down Expand Up @@ -1229,7 +1229,7 @@ def fit(self, X, y=None):
if self.metric != "precomputed":
# Non-precomputed matrices may contain non-finite values.
# Rows with these values
X = check_array(X, accept_sparse="csr", force_all_finite=False)
X = check_array(X, accept_sparse="csr", ensure_all_finite=False)
self._raw_data = X

self._all_finite = is_finite(X)
Expand Down