Python implementation of k-Shape http://www.cs.columbia.edu/~jopa/kshape.html
Go to file
2016-05-17 12:23:16 +00:00
.envrc add gitignore,envrc 2016-05-12 13:17:44 +00:00
.gitignore add gitignore,envrc 2016-05-12 13:17:44 +00:00
example.py add example 2016-05-12 13:46:32 +00:00
kshape.py remove dependency on scipy 2016-05-17 12:23:16 +00:00
README.md add example 2016-05-12 13:46:32 +00:00
requirements.txt finish algorithm 2016-05-12 13:16:30 +00:00

k-Shape

Python implementation of k-Shape

Usage

from kshape import kshape
import numpy as np
from scipy.stats import zscore

time_series = [[1,2,3,4], [0,1,2,3], [-1,1,-1,1], [1,2,2,3]]
cluster_num = 2
clusters = kshape(zscore(time_series), cluster_num)