You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add parameter T_subseq_isfinite to stumpy.motifs #521
@ninimama I'm not sure what you mean? z-normalized functions like stumpy.motifs don't use T_subseq_isfinite anywhere. Only non-normalized methods use T_subseq_isfinite. What you please explain what you are you trying to accomplish?
z-normalized functions like stumpy.motifs don't use T_subseq_isfinite anywhere. Only non-normalized methods use T_subseq_isfinite
Didn't know that. My case is for non-normalized distance though. I was trying to find each motif (and their matches) and then exclude them and their trivial matches, and then iterate through the process (i.e. finding the next motif) till I cover the whole time series.
I know that the function _aamp_motifs has a similar concept:
for idx in query_matches[:, 1]:
core.apply_exclusion_zone(P, int(idx), excl_zone, np.inf)
However, if I understand correctly, we here apply exclusion on the matrix profile. What I am looking for is something different. I want to apply it on distance profile for query matching, which can be done by T_subseq_isfinite. I might make a branch and experience it later. I understand it might not be good to have one-for-all purpose function. So, feel free to close this if you think it is better to keep the function as is.
If you are dealing with query matching, have you looked at the stumpy.match function? It's a bit hard for me to understand what it is that you want to accomplish without more information.
This is what I am trying to achieve: Given a time series T (and there is no query Q), I want to get the very-top motif and their top-k matches. Then, I want to get the next motif. However, I want to completely ignore the previously-discovered motif (i.e. I do not want it to affect the matrix profile P in the first place. In other words, I want to set their corresponding indices to np.inf in distance profile). This way, I can make sure that after some iterations, my motifs (and their matches) will exhaust the whole time series T. I acknowledge that as I go through the iterations based on the aforementioned approach, my later motifs might get a very large distance to their NN, which is from the remaining indices. But, I am okay with that.
This can be seen as some sort of clustering. The general idea is to group the top-motif with its k_NN matches; and then go through the rest of subsequences. (I know that we are not optimizing any objective function here and I know there are some overlaps between subsequences; but I just want to see IF I FORCE my time series T to be broken down to some similar subsequence, how would it look like?)
Activity
seanlaw commentedon Jan 19, 2022
@ninimama I'm not sure what you mean? z-normalized functions like
stumpy.motifsdon't useT_subseq_isfiniteanywhere. Only non-normalized methods useT_subseq_isfinite. What you please explain what you are you trying to accomplish?NimaSarajpoor commentedon Jan 19, 2022
Didn't know that. My case is for non-normalized distance though. I was trying to find each motif (and their matches) and then exclude them and their trivial matches, and then iterate through the process (i.e. finding the next motif) till I cover the whole time series.
I know that the function
_aamp_motifshas a similar concept:However, if I understand correctly, we here apply exclusion on the matrix profile. What I am looking for is something different. I want to apply it on distance profile for query matching, which can be done by
T_subseq_isfinite. I might make a branch and experience it later. I understand it might not be good to have one-for-all purpose function. So, feel free to close this if you think it is better to keep the function as is.seanlaw commentedon Jan 19, 2022
If you are dealing with query matching, have you looked at the
stumpy.matchfunction? It's a bit hard for me to understand what it is that you want to accomplish without more information.NimaSarajpoor commentedon Jan 19, 2022
Please let me know if this explanation helps.
This is what I am trying to achieve: Given a time series
T(and there is no query Q), I want to get the very-top motif and their top-k matches. Then, I want to get the next motif. However, I want to completely ignore the previously-discovered motif (i.e. I do not want it to affect the matrix profilePin the first place. In other words, I want to set their corresponding indices to np.inf in distance profile). This way, I can make sure that after some iterations, my motifs (and their matches) will exhaust the whole time seriesT. I acknowledge that as I go through the iterations based on the aforementioned approach, my later motifs might get a very large distance to their NN, which is from the remaining indices. But, I am okay with that.This can be seen as some sort of clustering. The general idea is to group the top-motif with its k_NN matches; and then go through the rest of subsequences. (I know that we are not optimizing any objective function here and I know there are some overlaps between subsequences; but I just want to see IF I FORCE my time series
Tto be broken down to some similar subsequence, how would it look like?)NimaSarajpoor commentedon Jan 19, 2022
@seanlaw
Is that okay if you move it to discussion for now?