markdregan / K-Nearest-Neighbors-with-Dynamic-Time-Warping

Python implementation of KNN and DTW classification algorithm
774 stars 215 forks source link

running under python 3.6 #6

Open williamwongys opened 7 years ago

williamwongys commented 7 years ago

First of all, thanks for this wonderful example. I have downloaded it and tried to run under python 3.6. It shows an unresolved error in the following line: dm = squareform(dm)

May I know how to resolve this?

markdregan commented 7 years ago

Hi. Can you share the full error returned?

On Thu, 27 Jul 2017 at 01:24 William Wong notifications@github.com wrote:

First of all, thanks for this wonderful example. I have downloaded it and tried to run under python 3.6. It shows an unresolved error in the following line: dm = squareform(dm)

May I know how to resolve this?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/markdregan/K-Nearest-Neighbors-with-Dynamic-Time-Warping/issues/6, or mute the thread https://github.com/notifications/unsubscribe-auth/AB3KFoY-czrBgQE7_9b0aAD-oQPV3Qvcks5sSElTgaJpZM4Ok8x7 .

williamwongys commented 7 years ago

I have resolved it by adding this in the import: from scipy.spatial.distance import squareform

is it correct?