diff --git a/python/cuml/metrics/pairwise_distances.pyx b/python/cuml/metrics/pairwise_distances.pyx index 269b1dbdc8..8409ce7dd9 100644 --- a/python/cuml/metrics/pairwise_distances.pyx +++ b/python/cuml/metrics/pairwise_distances.pyx @@ -345,7 +345,7 @@ def pairwise_distances(X, Y=None, metric="euclidean", handle=None, if metric in ['nan_euclidean']: return nan_euclidean_distances(X, Y, **kwds) - if metric in {'russellrao', 'dice'} and not np.all(X.data == 1.): + if metric in {'russellrao'} and not np.all(X.data == 1.): warnings.warn("X was converted to boolean for metric {}" .format(metric)) X = np.where(X != 0., 1.0, 0.0) @@ -368,7 +368,7 @@ def pairwise_distances(X, Y=None, metric="euclidean", handle=None, if (n_samples_x == 1 or n_features_x == 1): input_order = "K" - if metric in {'russellrao', 'dice'} and not np.all(Y.data == 1.): + if metric in {'russellrao'} and not np.all(Y.data == 1.): warnings.warn("Y was converted to boolean for metric {}" .format(metric)) Y = np.where(Y != 0., 1.0, 0.0)