diff options
Diffstat (limited to 'python/examples/logistic_regression.py')
-rwxr-xr-x | python/examples/logistic_regression.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/examples/logistic_regression.py b/python/examples/logistic_regression.py index 1e1b6d6e5b..1117dea538 100755 --- a/python/examples/logistic_regression.py +++ b/python/examples/logistic_regression.py @@ -39,7 +39,7 @@ def readPointBatch(iterator): strs = list(iterator) matrix = np.zeros((len(strs), D + 1)) for i in xrange(len(strs)): - matrix[i] = np.fromstring(strs[i], dtype=np.float32, sep = ' ') + matrix[i] = np.fromstring(strs[i].replace(',', ' '), dtype=np.float32, sep=' ') return [matrix] if __name__ == "__main__": |