problems while using stumpy.match
if normalize=False
#636
Unanswered
SaVoAMP
asked this question in
Help: Other Questions
Replies: 2 comments 8 replies
-
Yes, it is working! Thank you very much! :) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey, I don't understand what I am doing wrong but the
stumpy.match
function doesn't seem to work for my non-normalized input.I have got the following function call:
Everything is working if
normalize=True
but if I set this parameter toFalse
, I get:What I am trying to do is to compute the matrix profile, specify a query index and afterwards run the
stumpy.match
function to find all matches of the predefined subsequence.Concretely I am doing the following (the
normalize
parameter can be set in an interactive jupyter notebook):_, sliding_mean, sliding_stddev = core.preprocess(dimensions, m)
mps, indices = stumpy.mstump(dimensions, m, normalize=normalize)
mdls, subspaces = stumpy.mdl(dimensions, m, query_idx, nn_idx, normalize=normalize)
Now, if I run my notebook specifying that
normalize=True
, everything works fine. But when I try to setnormalize=False
, I get the exception shown above. What am I missing?I was wondering if this might be a bug, but everything is working using the
mmotifs
function in which the same function call is used and nothing else is done with thenormalize
parameter. If anything it could be an error related to the input parameters that might cause an exception in the case thatnormalize=False
. But it is probably more likely that I have made a mistake during the steps 1 to 5.Beta Was this translation helpful? Give feedback.
All reactions