Finding the top-k motif (similar subsequence) of a given subsequence in T #1093
-
Given a time series T, I am interested in finding the top-K similar subsequence of a given subsequence T' in T. Suppose |T| =50 and m =5, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
@cyuab Thank you for your question and welcome to the STUMPY community.
Yes, that sounds correct. Given that the matrix profile is a brute force pairwise distance calculation, this means that ALL distances between
Thus, we chose speed over committing to making unnecessary overlap assumptions for the user. And, instead, the user can most likely increase
Typically (there are exceptions, see below!), the "exclusion zone" only refers to the zone that is close to the original
Yes, I believe that the left matrix profile is what you want. Note that you will need to use the left-index to retrieve the correct subsequence and then to recompute the distance (don't forget to z-normalize where necessary!)
Normally, if you already know what
Please feel free to ask any clarifying questions and I'll try my best to help. |
Beta Was this translation helpful? Give feedback.
-
@seanlaw Thank you so much for your time and response. (1)
It seems more natural for me that the "exclusion zone" applies to all the subsequences that are identified as a member of Motif. In the above figure, there is a GUI panel. So, I am wondering if we should impose the "exclusion zone" on the k-nearest neighbors of T' so that these neighbors are not just the "slightly-shift" version of the other one? (2) Using stumpi. Do you have any suggestions/ comments about it. |
Beta Was this translation helpful? Give feedback.
Yes, I would apply the exclusion zone one at a time as you add more matches to the "motif family". Having said that, you're starting to customize your analysis and so i recommend looking at the
stumpy.match
code to learn more about how things are currently being handled and, hopefully, you can see that there's nothing special going on behind the scenes:stumpy/stumpy/motifs.py
Lines 532 to 585 in 534488d