Skip to content

Commit

Permalink
With weights.
Browse files Browse the repository at this point in the history
  • Loading branch information
trivialfis committed Feb 25, 2021
1 parent c973fe4 commit 0579029
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/python/test_with_dask.py
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,7 @@ async def train():
asynchronous=True,
dashboard_address=0) as cluster:
async with Client(cluster, asynchronous=True) as client:
X, y, w = generate_array()
X, y, w = generate_array(with_weights=True)
dtrain = await DaskDMatrix(client, X, y, weight=w)
dvalid = await DaskDMatrix(client, X, y, weight=w)
output = await xgb.dask.train(client, {}, dtrain=dtrain)
Expand Down

0 comments on commit 0579029

Please sign in to comment.