Skip to content

Commit

Permalink
Py35.
Browse files Browse the repository at this point in the history
  • Loading branch information
trivialfis committed May 21, 2020
1 parent 6d3b35d commit f44be01
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion python-package/xgboost/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,8 @@ def _convert_unknown_data(data, meta=None, meta_type=None):
else:
import warnings
warnings.warn(
f'Unknown data type {type(data)}, coverting it to csr_matrix')
'Unknown data type: ' + str(type(data)) +
', coverting it to csr_matrix')
try:
data = scipy.sparse.csr_matrix(data)
except Exception:
Expand Down
4 changes: 2 additions & 2 deletions python-package/xgboost/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -532,8 +532,8 @@ def get_device_quantile_dmatrix_data_handler(
'''
handler = __device_quantile_dmatrix_registry.get_handler(
data)
assert handler, f'Current data type {type(data)} is not supported' + \
' for DeviceQuantileDMatrix'
assert handler, 'Current data type ' + str(type(data)) +\
' is not supported for DeviceQuantileDMatrix'
return handler(max_bin, missing, nthread, silent)


Expand Down

0 comments on commit f44be01

Please sign in to comment.