Skip to content

Instantly share code, notes, and snippets.

@wenhoujx
Last active August 29, 2015 14:02
Show Gist options
  • Save wenhoujx/6c4ea3cbacece05a6afc to your computer and use it in GitHub Desktop.
Save wenhoujx/6c4ea3cbacece05a6afc to your computer and use it in GitHub Desktop.
compute dtw with mlpy package
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