Unable to find Dtw class in 3.5.0

173 views
Skip to first unread message

Pavel J

unread,
Jan 19, 2013, 7:34:40 PM1/19/13
to mlpy-g...@googlegroups.com
Hello,

I have installed mlpy on Fedora 16.  I am interested in using DTW library and as per the documentation I tried the simple example script as follows:

import numpy as np
import mlpy
x = np.array([1,2,3,4.6])
y = np.array([1,2,3,5])
mydtw = mlpy.Dtw(onlydist=False)
mydtw.compute(x, y)

However, I am getting the following error:
  File "dtw_test.py", line 6, in <module>
    mydtw = mlpy.Dtw()
AttributeError: 'module' object has no attribute 'Dtw'

Any help will be much appreciated.

Thx
~P

v_...@ukr.net

unread,
Jan 21, 2013, 9:44:12 AM1/21/13
to mlpy-g...@googlegroups.com
Hello!

On Sat, 19 Jan 2013 16:34:40 -0800 (PST)
Pavel J <pavel....@gmail.com> wrote:
>
> However, I am getting the following error:
> File "dtw_test.py", line 6, in <module>
> mydtw = mlpy.Dtw()
> AttributeError: 'module' object has no attribute 'Dtw'
>
> Any help will be much appreciated.
>
According to my
file:///usr/share/doc/mlpy-3.5.0/html/dtw.html
documentation page, you are probably looking for
mlpy.dtw_std(x, y, dist_only=True)

I hope this is what you are looking for.
Regards,
Vladimir
-----
<v_...@ukr.net>
Reply all
Reply to author
Forward
0 new messages