Skip to content

Commit

Permalink
Ignroe deprecation warnings related to n_clusters
Browse files Browse the repository at this point in the history
  • Loading branch information
betatim committed Jan 16, 2025
1 parent ed127a9 commit d2b96e2
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,16 @@
from sklearn.manifold import trustworthiness


pytestmark = pytest.mark.filterwarnings(
"ignore:The default value of `data_on_host` "
'will change from False to "auto" in 25.06'
)
pytestmark = [
pytest.mark.filterwarnings(
"ignore:The default value of `data_on_host` "
'will change from False to "auto" in 25.06'
),
pytest.mark.filterwarnings(
"ignore:The default value of `nnd_n_clusters` "
"will change from 1 to 10 in 25.06."
),
]


@pytest.fixture(scope="module")
Expand Down
14 changes: 10 additions & 4 deletions python/cuml/cuml/tests/test_umap.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,16 @@
if not IS_ARM:
import umap

pytestmark = pytest.mark.filterwarnings(
"ignore:The default value of `data_on_host` "
'will change from False to "auto" in 25.06'
)
pytestmark = [
pytest.mark.filterwarnings(
"ignore:The default value of `data_on_host` "
'will change from False to "auto" in 25.06'
),
pytest.mark.filterwarnings(
"ignore:The default value of `nnd_n_clusters` "
"will change from 1 to 10 in 25.06."
),
]

dataset_names = ["iris", "digits", "wine", "blobs"]

Expand Down

0 comments on commit d2b96e2

Please sign in to comment.