From 3cba855163f4ef45da2dbd91c174208a803392bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Wed, 18 May 2016 13:00:50 +0000 Subject: [PATCH] update example (without scipy) --- README.md | 3 +-- example.py | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index f51aba7..af85a85 100644 --- a/README.md +++ b/README.md @@ -5,9 +5,8 @@ Python implementation of k-Shape ### Usage ``` -from kshape import kshape +from kshape import kshape, zscore 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 diff --git a/example.py b/example.py index 7b627f4..b5ccc3d 100644 --- a/example.py +++ b/example.py @@ -1,6 +1,5 @@ -from kshape import kshape +from kshape import kshape, zscore 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