Skip to content

Commit

Permalink
Py35.
Browse files Browse the repository at this point in the history
  • Loading branch information
trivialfis committed May 20, 2020
1 parent 6d3b35d commit b908ea4
Showing 1 changed file with 2 additions and 1 deletion.
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

0 comments on commit b908ea4

Please sign in to comment.