Skip to content

Commit

Permalink
FIX Update abs call for np 1.21 change
Browse files Browse the repository at this point in the history
  • Loading branch information
dantegd committed Jun 23, 2021
1 parent ac37465 commit fc20d8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/cuml/test/test_dbscan.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def test_dbscan_precomputed(datatype, nrows, max_mbytes_per_batch, out_dtype):

# Precompute distances
Xc = np.array([[complex(p[0], p[1]) for p in X]])
X_dist = np.abs(Xc - Xc.T, dtype=datatype)
X_dist = np.abs(Xc - Xc.T).astype(datatype)

eps = 1
cuml_dbscan = cuDBSCAN(eps=eps, min_samples=2, metric='precomputed',
Expand Down

0 comments on commit fc20d8a

Please sign in to comment.