Last active
August 29, 2015 14:02
-
-
Save wenhoujx/6c4ea3cbacece05a6afc to your computer and use it in GitHub Desktop.
compute dtw with mlpy package
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from mlpy import dtw_std | |
import numpy as np | |
def dtw_mlpy( x): | |
distmat = np.array([dtw_std( xx,yy) for xx in x for yy in x]) | |
return distmat |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment