Replies: 1 comment
-
If this is a distance measurement, this can be a Just a thought for now. |
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
-
Hello members
not sure if it is the right place (might be in tsmp depository), but I found that the Earth Mover's Distance (or Wasserstein) could provide good results in matching sequences independantly of the order (a little like MPdist).
To do so I am creating a vector of quantiles at each time of the time series, and the EMD will be simply the euclidean distance between this vector and the quantile vector of the subsequence you want to match.
I got a (scrappy) piece of code below taking advantage of sliding fast quantile update (using 'caTools'), and 'Rfast' to get (brutal) distance between my reference and the other subsequences
What do you think about it? Would there be any way to extend it (I find similarities in classic MP, since somehow there is 1 point change in sliding subsequence, so quantile is not recalcluated from scratch..)
Cheers!
Beta Was this translation helpful? Give feedback.
All reactions