Add Top-K Nearest Neighbors to Matrix Profile (normalize=True) #592
Closed
Description
Currently, functions like stump
, stumped
, and gpu_stump
only return the top-1 nearest neighbor. Depending on the added complexity, we may want to consider adding a top-K nearest neighbor matrix profile.
This would add additional columns to the output. Namely, it would add 2 additional columns for every nearest neighbor.
Also, we should use np.searchsorted
in place of heapq
See: #639 and #640 as they are closely related to this issue