Unable to find dtw_std

355 views
Skip to first unread message

Thales Angelino

unread,
Apr 2, 2013, 1:03:34 PM4/2/13
to mlpy-g...@googlegroups.com
Dear all,

I was trying to use the mlpy-3.5.0 on Ubuntu 10.04.4 LTS ( Python 2.6.5 ), but after the packages import, at the point I will perform the DTW instruction,
an error happens and the following log is shown:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'dtw_std'

An interesting thing also occurs when I was googling about it and found this relevant topic: if I replace by mlpy.Dtw(), it works!
So I would like some help, please.

Here is the source code, also provided by the package:

>>> import mlpy
...
>>> x = [0,0,0,0,1,1,2,2,3,2,1,1,0,0,0,0] >>> y = [0,0,1,1,2,2,3,3,3,3,2,2,1,1,0,0] >>> dist, cost, path = mlpy.dtw_std(x, y, dist_only=False)
...

Thanks in advance,

Marco Chierici

unread,
Apr 3, 2013, 3:44:22 AM4/3/13
to mlpy-g...@googlegroups.com
Hello!

This appears to be a version conflict. Try completely uninstalling mlpy by removing the mlpy directory and the mlpy-3.5.0-py2.6.egg-info file, which are both in the Python site-packages directory. Then please download and install the latest version from mlpy.fbk.eu .

Cheers,
Marco
Reply all
Reply to author
Forward
0 new messages