Skip to content

Commit

Permalink
running with digits
Browse files Browse the repository at this point in the history
  • Loading branch information
jinsolp committed Aug 21, 2024
1 parent b9b9dd6 commit ecd8420
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions python/cuml/cuml/tests/test_umap.py
Original file line number Diff line number Diff line change
Expand Up @@ -848,9 +848,7 @@ def test_umap_trustworthiness_on_batch_nnd(
n_rows, n_features, data_on_host, num_clusters
):

data, labels = make_blobs(
n_samples=n_rows, n_features=n_features, centers=5, random_state=42
)
digits = datasets.load_digits()

cuml_model = cuUMAP(
n_neighbors=10,
Expand All @@ -860,9 +858,9 @@ def test_umap_trustworthiness_on_batch_nnd(
)

cuml_embedding = cuml_model.fit_transform(
data, convert_dtype=True, data_on_host=data_on_host
digits.data, convert_dtype=True, data_on_host=data_on_host
)

cuml_trust = trustworthiness(data, cuml_embedding, n_neighbors=10)
cuml_trust = trustworthiness(digits.data, cuml_embedding, n_neighbors=10)

assert cuml_trust > 0.9

0 comments on commit ecd8420

Please sign in to comment.