Skip to content
Snippets Groups Projects
Commit 8b515ce2 authored by DesireeWyrzylala's avatar DesireeWyrzylala
Browse files

fix kshape

parent 0ff2c680
No related branches found
No related tags found
No related merge requests found
......@@ -16,7 +16,7 @@ params = {
def run_KShapeAD(data, periodicity=1):
slidingWindow = find_length_rank(data, rank=periodicity)
clf = SAND(pattern_length=slidingWindow, subsequence_length=4*(slidingWindow))
clf.fit(data.squeeze(), overlaping_rate=int(1.5*slidingWindow))
clf.fit(X=data.squeeze(),online=False, overlaping_rate=int(1.5*slidingWindow))
score = clf.decision_scores_
return score.ravel()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment