Skip to content

Commit 5bc9412

Browse files
authored
Merge pull request #612 from gerald-ftk/master
Fixed DeprecationWarning in hdbscan/hdbscan_.py
2 parents 61c16f2 + de8d2c8 commit 5bc9412

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hdbscan/hdbscan_.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -494,9 +494,9 @@ def remap_single_linkage_tree(tree, internal_to_raw, outliers):
494494
def is_finite(matrix):
495495
"""Returns true only if all the values of a ndarray or sparse matrix are finite"""
496496
if issparse(matrix):
497-
return np.alltrue(np.isfinite(matrix.tocoo().data))
497+
return np.all(np.isfinite(matrix.tocoo().data))
498498
else:
499-
return np.alltrue(np.isfinite(matrix))
499+
return np.all(np.isfinite(matrix))
500500

501501

502502
def get_finite_row_indices(matrix):

0 commit comments

Comments
 (0)