91db788cc3fa60962a159e9002a20b8930b6e314,dask_xgboost/tests/test_core.py,,test_synchronous_api,#Any#,31
Before Change
def test_synchronous_api(loop):
param = {"max_depth":2, "eta":1, "silent":1, "objective":"binary:logistic"}
x = np.random.random((1000, 10))
y = np.random.random(1000)
dtrain = xgb.DMatrix(x, label=y)
bst = xgb.train(param, dtrain)
After Change
correct = (result > 0.5) == labels
dcorrect = (dresult > 0.5) == labels
assert dcorrect.sum() >= correct.sum()
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
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_synchronous_api
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: broadinstitute/keras-rcnn
Commit Name: 649858b6ce410a9869717cf7811c968481e95424
Time: 2017-10-30
Author: jyhung@broadinstitute.org
File Name: tests/layers/test_detection.py
Class Name: TestDetection
Method Name: test_call