1.2 KiB
1 - STUMPY Basics
Above what was seen in the tutorial I started on a generalized motif and discord extraction procedure. Since these are both really the same process over different sort orders of the matrix profile we end up with a very clean functional setup with a single function doing all the work and two wrappers 'deciding' which calculation should be done. This allowed me to generalize marking discovered discord and motif windows on my output plots, a process which should remain more or less evergreen.
TODO
I remember reading that the distances returned by a matrix profile have an upper bound. I should see what calculating my distance cutoff with that upper bound looks like rather than calculating off the top motif like I do now.
If two motifs overlap it could be that the window is too small. I don't know what other criteria to test yet to tell me if that is the case or not. I do know that this can be determined in discovery stages using a Pan-matrix profile (PMP).
Some form of reference following should occur to ensure that I'm grabbing motifs which actually relate to one another.
Currently the function is quite primitive. It should be packaged and iterated on using the data in further sections of the tutorial.