Skip to content

Inconsistent behavior of stumpy.motifs across Stumpy versions #794

Discussion options

You must be logged in to vote

@amurthy-sunysb I think the issue is that when cutoff=None, STUMPY tries its best to guess at the "best" rational cutoff value according to np.nanmax([np.nanmean(P) - 2.0 * np.nanstd(P), np.nanmin(P)]). However, in this case, np.nanmean(P) - 2.0 * np.nanstd(P) is negative and so the smallest possible cutoff is set to np.nanmin(P). Unfortunately, all of the matches have a distance that is greater than max_distance (also a guess by STUMPY). So, ultimately, you need to do something like:

stumpy.motifs(c, p[:,0], cutoff=0.053, max_distance=np.inf)

By increasing cutoff to an even larger value will give you more motifs while decreasing max_distance will reduce the number of possible matches. T…

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
1 reply
@seanlaw
Comment options

Answer selected by amurthy-sunysb
Comment options

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

@seanlaw
Comment options

@seanlaw
Comment options

@NimaSarajpoor
Comment options

@amurthy-sunysb
Comment options

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