Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions python/cuml/tests/dask/test_dask_label_binarizer.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: Copyright (c) 2020-2025, NVIDIA CORPORATION.
# SPDX-FileCopyrightText: Copyright (c) 2020-2026, NVIDIA CORPORATION.
# SPDX-License-Identifier: Apache-2.0

import cupy as cp
Expand All @@ -10,6 +10,10 @@
from cuml.testing.utils import array_equal


def _get_block(x):
return x.get()


@pytest.mark.parametrize(
"labels",
[
Expand Down Expand Up @@ -40,7 +44,7 @@ def test_basic_functions(labels, multipart, client):

xformed = binarizer.transform(df2)

xformed = xformed.map_blocks(lambda x: x.get(), dtype=cp.float32)
xformed = xformed.map_blocks(_get_block, dtype=cp.float32)
xformed.compute_chunk_sizes()

assert xformed.compute().shape[1] == binarizer.classes_.shape[0]
Expand Down
Loading