How the ties are handled? #1094
Unanswered
cyuab
asked this question in
Help: Other Questions
Replies: 2 comments 8 replies
-
Good question. There is no preference. Whichever nearest neighbor that was encountered first during the distance computation will be kept. Note that since this is done in parallel, it is not known what the order will be. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks for your reply. I agree it is challenging to know which one has been kept. |
Beta Was this translation helpful? Give feedback.
8 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.
-
For a given time series$T$ , we can compute the Matrix Profile of $T$ by
And access the nearest neighbor and the corresponding distance of all the m-subsequences (i.e., length =$m$ ) by
So, if for a subsequence$T'$ at the position $T$ that have the exact same distances from $T'$ (i.e., $T'$ .
T_prime_idx
, there are two nearest neighbors inmp.P_[T_prime_idx]
), which one will be picked formp.I_[T_prime_idx]
?Any particular preferences? For example, the one closer to
Sorry if it is written in the document.
Beta Was this translation helpful? Give feedback.
All reactions