Typehint for Sklearn. (#6799)

This commit is contained in:
Jiaming Yuan
2021-04-14 06:55:21 +08:00
committed by GitHub
parent 3d919db0c0
commit dee5ef2dfd
11 changed files with 335 additions and 262 deletions

View File

@@ -269,7 +269,9 @@ class TestDistributedGPU:
@pytest.mark.skipif(**tm.no_dask())
@pytest.mark.skipif(**tm.no_dask_cuda())
@pytest.mark.parametrize("model", ["boosting"])
def test_dask_classifier(self, model, local_cuda_cluster: LocalCUDACluster) -> None:
def test_dask_classifier(
self, model: str, local_cuda_cluster: LocalCUDACluster
) -> None:
import dask_cudf
with Client(local_cuda_cluster) as client:
X_, y_, w_ = generate_array(with_weights=True)