Skip to content

Commit

Permalink
Use CPU input for test_boost_from_prediction. (dmlc#6818)
Browse files Browse the repository at this point in the history
  • Loading branch information
trivialfis committed Apr 1, 2021
1 parent 47b6248 commit 74f3a2f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/python-gpu/test_gpu_with_dask.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,12 +175,11 @@ def run_gpu_hist(

@pytest.mark.skipif(**tm.no_cudf())
def test_boost_from_prediction(local_cuda_cluster: LocalCUDACluster) -> None:
import cudf
from sklearn.datasets import load_breast_cancer
with Client(local_cuda_cluster) as client:
X_, y_ = load_breast_cancer(return_X_y=True)
X = dd.from_array(X_, chunksize=100).map_partitions(cudf.from_pandas)
y = dd.from_array(y_, chunksize=100).map_partitions(cudf.from_pandas)
X = dd.from_array(X_, chunksize=100)
y = dd.from_array(y_, chunksize=100)
run_boost_from_prediction(X, y, "gpu_hist", client)


Expand Down

0 comments on commit 74f3a2f

Please sign in to comment.