pebl
pebl copied to clipboard
pebl.data.ParsingError: Cannot convert value
I have tried your work and follow from this https://pythonhosted.org/pebl/tutorial.html, when i tried
>>> from pebl import data
Couldn't import dot_parser, loading of dot files will not be possible.
>>> from pebl import data
>>> from pebl.learner import greedy
>>> dataset = data.fromfile("data.txt")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python2.7/dist-packages/pebl-1.0.2-py2.7-linux-x86_64.egg/pebl/data.py", line 433, in fromfile
return fromstring(f.read())
File "/usr/local/lib/python2.7/dist-packages/pebl-1.0.2-py2.7-linux-x86_64.egg/pebl/data.py", line 553, in fromstring
d = N.array([[dataitem(c,v) for c,v in zip(row,variables)] for row in d])
File "/usr/local/lib/python2.7/dist-packages/pebl-1.0.2-py2.7-linux-x86_64.egg/pebl/data.py", line 491, in dataitem
raise ParsingError(msg)
pebl.data.ParsingError: Cannot convert value 1.17 1.61 2.17 1.58 1.98 0.19 -0.47 -0.12 -1.09 0.57 0.83 0.5 to a float.
how can i use your work ? thx