Skip to content

Commit

Permalink
Lint.
Browse files Browse the repository at this point in the history
  • Loading branch information
trivialfis committed Jul 15, 2020
1 parent ea0d4b1 commit 74205b6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions python-package/xgboost/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -725,6 +725,8 @@ def _device_quantile_transform(data, feature_names, feature_types):
return data, feature_names, feature_types
if _is_dlpack(data):
return _transform_dlpack(data), feature_names, feature_types
raise TypeError('Value type is not supported for data iterator:' +
str(type(data)))


def dispatch_device_quantile_dmatrix_set_data(proxy, data):
Expand Down
2 changes: 1 addition & 1 deletion tests/python/test_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def test_basic(self):
# save dmatrix into binary buffer
dtest.save_binary(dtest_path)
# save model
model_path = 'model.booster'
model_path = os.path.join(tmpdir, 'model.booster')
bst.save_model(model_path)
# load model and data in
bst2 = xgb.Booster(model_file=model_path)
Expand Down

0 comments on commit 74205b6

Please sign in to comment.