Determine Which Matrix Profile is Closest to a Target Time Series (Without Consensus Motif Search) #1047
-
Hi ! Now, I want to determine which of the smaller-interval series (1D, 3D, 5D) has motifs most closely resembling the patterns in the 15D data. What I’ve Tried:
Feature Request:
Additional Notes:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
@jBavanati Thank you for your question and welcome to the STUMPY community.
I don't know the answer to your question, but I wonder if you are looking for the
As I'm sure you've already considered, the top (single) motif discovered in each matrix profile also comes with a distance and that would be your "similarity" measure for which matrix profile has a subsequence that looks most similar to another subsequence in the target time series. However, it sounds like what you are interested in is what if we wanted to compare, say, the top 30 motifs found in each matrix profile that are computed against the same target time series. Is that correct? In that case, I believe that If I've misunderstood your question, please feel free to elaborate or correct me. |
Beta Was this translation helpful? Give feedback.
-
Assuming 1D ... 15D are long time series instead of short motifs
https://stumpy.readthedocs.io/en/latest/api.html#stumpy.mass You still need to build a python dictionary for all the motifs and timeseries, containing the minimum distance of the distance profiles. Then you can sort the dictionary by distance. There is another way to compute the desired similarities, but it requires the full Distance-Matrix instead of the Matrix-Profile. Hint: You can concatenate multiple timeseries into a single array, if you interleave a np.NaN value. |
Beta Was this translation helpful? Give feedback.
mass( query=top_motif_in_1D, timeseries = 15D_timeseries)