Skip to content

Commit

Permalink
[back port] Use CPU input for test_boost_from_prediction. (#6818) (#6824
Browse files Browse the repository at this point in the history
)
  • Loading branch information
trivialfis authored Apr 5, 2021
1 parent 43f52ed commit 604ae01
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 @@ -174,12 +174,11 @@ def run_gpu_hist(


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 604ae01

Please sign in to comment.