How can I find similar pattern between latest 30 data points of one time series and all the historical data of another time series? #915
Replies: 3 comments 10 replies
-
@rkisdp Thank you for your question and welcome to the STUMPY community.
In the future, it would be beneficial for you to share the code that you've tried as you might be very close. In the meantime, if you look at the fast pattern matching tutorial, you'll see that finding closest matches can be accomplished by using the mass function:
I hope that helps. |
Beta Was this translation helpful? Give feedback.
-
Thank you so so so much for your reply @seanlaw, Only you in this world can save my life. I just tried your code, but not getting the desired result. In this image, the similarity of the pattern is shown at the tail of the second graph, but I think it should be somewhere Can you please please please help me? |
Beta Was this translation helpful? Give feedback.
-
@seanlaw @NimaSarajpoor Thank you so so much, you helped me a lot. I just found it. You can see here even after normalization and other things it is still finding the similarity of pattern in the wrong area of the second graph. |
Beta Was this translation helpful? Give feedback.
-
Hi @seanlaw,
I have two different time series.
Let's say:
I want to find similar patterns between the latest 30 data points of
first_data
which is like(first_data.tail(30))
and within all the datapoint points of thesecond_data
time series.in other words, I want the best contiguous 30 data points in the second_data time-series which have a similar pattern to the latest 30 data points of the
first_data
time series and I also want to know which 30 data points are showing a similar pattern to the latest 30 data points of thefirst_data
time series in the graph.Can you please help me? I am unable to get my desired results so far by just reading the documentation.
Beta Was this translation helpful? Give feedback.
All reactions