Merge pull request #269 from jseabold/decode-string-py3

Good, python3 compatibility is indeed something we need to be careful about
This commit is contained in:
Tianqi Chen 2015-04-27 10:45:39 -07:00
commit 6783b66b9f

View File

@ -517,7 +517,7 @@ class Booster(object):
int(with_stats), ctypes.byref(length))
res = []
for i in range(length.value):
res.append(str(sarr[i]))
res.append(str(sarr[i].decode('ascii')))
return res
def get_fscore(self, fmap=''):