91db788cc3fa60962a159e9002a20b8930b6e314,dask_xgboost/tests/test_core.py,,test_dask,#Any#Any#Any#Any#,16
Before Change
@gen_cluster(client=True, Worker=Nanny)
def test_dask(c, s, a, b):
x = np.random.random((1000, 10))
y = np.random.random(1000)
dtrain = xgb.DMatrix(x, label=y)
After Change
bst = xgb.train(param, dtrain)
ddf = dd.from_pandas(df, npartitions=4)
dlabels = dd.from_pandas(labels, npartitions=4)
dbst = yield dxgb._train(c, param, ddf, dlabels)
result = bst.predict(dtrain)
dresult = dbst.predict(dtrain)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: dask/dask-xgboost
Commit Name: 91db788cc3fa60962a159e9002a20b8930b6e314
Time: 2017-02-18
Author: mrocklin@gmail.com
File Name: dask_xgboost/tests/test_core.py
Class Name:
Method Name: test_dask
Project Name: dmlc/dgl
Commit Name: 6367318f455aa8c27b6341c9b98794351dfd168e
Time: 2020-08-17
Author: coin2028@hotmail.com
File Name: examples/pytorch/pinsage/data_utils.py
Class Name:
Method Name: train_test_split_by_time
Project Name: dask/dask-xgboost
Commit Name: 91db788cc3fa60962a159e9002a20b8930b6e314
Time: 2017-02-18
Author: mrocklin@gmail.com
File Name: dask_xgboost/tests/test_core.py
Class Name:
Method Name: test_synchronous_api