Refactoring stumpy.motifs.match
and improving its flexibility!
#653
NimaSarajpoor
started this conversation in
Ideas
Replies: 1 comment
-
Sounds good. Please create an issue and maybe let's call the function |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
It seems that the functions
stumpy.motifs.match(Q, T, ...)
andstumpy.aamp_motifs.aamp_match(Q, T, ...)
have the same structure, respectively, after line 460 and line 393.So, I am thinking of refactoring as follows:
Then,
The advantages:
stumpy.mpdist._mpdist_vect
to calculate mpdist-based distance profile and then pass it to_match_finder(D)
to find mpdist-based matches! (they may use even other distances to get the distance profile, and then they can use_match_finder(D)
to find the matches)Beta Was this translation helpful? Give feedback.
All reactions