Persist data in dask test. (#7077)
This commit is contained in:
parent
b56d3d5d5c
commit
ffa66aace0
@ -184,6 +184,9 @@ def test_dask_predict_shape_infer(client: "Client") -> None:
|
|||||||
def run_boost_from_prediction(
|
def run_boost_from_prediction(
|
||||||
X: xgb.dask._DaskCollection, y: xgb.dask._DaskCollection, tree_method: str, client: "Client"
|
X: xgb.dask._DaskCollection, y: xgb.dask._DaskCollection, tree_method: str, client: "Client"
|
||||||
) -> None:
|
) -> None:
|
||||||
|
X = client.persist(X)
|
||||||
|
y = client.persist(y)
|
||||||
|
|
||||||
model_0 = xgb.dask.DaskXGBClassifier(
|
model_0 = xgb.dask.DaskXGBClassifier(
|
||||||
learning_rate=0.3, random_state=0, n_estimators=4,
|
learning_rate=0.3, random_state=0, n_estimators=4,
|
||||||
tree_method=tree_method)
|
tree_method=tree_method)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user