k-shape/README.md

16 lines
271 B
Markdown
Raw Normal View History

2016-05-12 13:21:40 +00:00
## k-Shape
Python implementation of k-Shape
2016-05-12 13:46:32 +00:00
### 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)
```