NLeSC / mcfly

A deep learning tool for time series classification and regression
Apache License 2.0
362 stars 81 forks source link

investigate Dynamic Time Warping #28

Closed cwmeijer closed 8 years ago

cwmeijer commented 8 years ago

Investigate and decide whether to implement DTW

cwmeijer commented 8 years ago

It looks easy but I can't find implementations in python in nice libraries. There is one in R. See http://stackoverflow.com/a/5766202 for how this can be called from python. I don't know yet what this means in terms of added dependencies. I'll check.

cwmeijer commented 8 years ago

Well maybe it's so easy in Python that nobody even talks about it. It's as simple as: import dtw dtw.dtw(x,y,f) where x and y are numpy arrays and f is a distance function like 'lambda x,y : abs(x-y)' This of course adds the dtw package to our dependencies.