Skip to content

Finding the top-k motif (similar subsequence) of a given subsequence in T #1093

Discussion options

You must be logged in to vote

Or should I add their exclusion zone manually as your code suggested?
Where start_idx will be the newly discovered members

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

Q = core._preprocess(Q)
T = core._preprocess(T)
if np.any(np.isnan(Q)) or np.any(np.isinf(Q)): # pragma: no cover
raise ValueError("…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@seanlaw
Comment options

@cyuab
Comment options

@seanlaw
Comment options

Answer selected by cyuab
@cyuab
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants