diff --git a/cpp/src_prims/sparse/distance/distance.cuh b/cpp/src_prims/sparse/distance/distance.cuh index bb3c5bc121..b2bee4bbd1 100644 --- a/cpp/src_prims/sparse/distance/distance.cuh +++ b/cpp/src_prims/sparse/distance/distance.cuh @@ -348,7 +348,7 @@ void pairwiseDistance(value_t *out, raft::distance::DistanceType metric) { switch (metric) { case raft::distance::DistanceType::L2Expanded: - // EucExpandedL2 + // L2Expanded l2_distances_t(input_config).compute(out); break; case raft::distance::DistanceType::InnerProduct: diff --git a/cpp/test/prims/sparse/knn.cu b/cpp/test/prims/sparse/knn.cu index 80aa580b06..036949e0e6 100644 --- a/cpp/test/prims/sparse/knn.cu +++ b/cpp/test/prims/sparse/knn.cu @@ -50,7 +50,7 @@ struct SparseKNNInputs { int batch_size_index = 2; int batch_size_query = 2; - raft::distance::DistanceType metric = raft::distance::DistanceType::EucUnexpandedL2; + raft::distance::DistanceType metric = raft::distance::DistanceType::L2Unexpanded; }; template @@ -165,7 +165,7 @@ const std::vector> inputs_i32_f = { {0, 3, 1, 0, 2, 0, 3, 0}, // inds 2, 2, - raft::distance::DistanceType::EucUnexpandedL2}}; + raft::distance::DistanceType::L2Unexpanded}}; typedef SparseKNNTest KNNTestF; TEST_P(KNNTestF, Result) { compare(); } INSTANTIATE_TEST_CASE_P(SparseKNNTest, KNNTestF, diff --git a/cpp/test/sg/umap_test.cu b/cpp/test/sg/umap_test.cu index 1a1d2c70f6..07922ef43e 100644 --- a/cpp/test/sg/umap_test.cu +++ b/cpp/test/sg/umap_test.cu @@ -82,7 +82,7 @@ class UMAPTest : public ::testing::Test { CUDA_CHECK(cudaStreamSynchronize(handle.get_stream())); - xformed_score = trustworthiness_score( + xformed_score = trustworthiness_score( handle, X_d.data(), xformed.data(), n_samples, n_features, umap_params->n_components, umap_params->n_neighbors); } @@ -117,7 +117,7 @@ class UMAPTest : public ::testing::Test { CUDA_CHECK(cudaStreamSynchronize(handle.get_stream())); - fit_score = trustworthiness_score( + fit_score = trustworthiness_score( handle, X_d.data(), embeddings.data(), n_samples, n_features, umap_params->n_components, umap_params->n_neighbors); } @@ -154,7 +154,7 @@ class UMAPTest : public ::testing::Test { CUDA_CHECK(cudaStreamSynchronize(handle.get_stream())); - supervised_score = trustworthiness_score( + supervised_score = trustworthiness_score( handle, X_d.data(), embeddings.data(), n_samples, n_features, umap_params->n_components, umap_params->n_neighbors); } @@ -213,7 +213,7 @@ class UMAPTest : public ::testing::Test { CUDA_CHECK(cudaStreamSynchronize(handle.get_stream())); - fit_with_knn_score = trustworthiness_score( + fit_with_knn_score = trustworthiness_score( handle, X_d.data(), embeddings.data(), n_samples, n_features, umap_params->n_components, umap_params->n_neighbors); }