You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As explained here, it is possible to have T and m that result in 0 subsequence that satisfy the exclusion rule, i.e. |i - j| > excl_zone, where i and j are the start index of two subsequences T[i, i + m] and T[j : j + m].
See Example below:
import numpy as np
import stumpy
T = np.random.rand(10)
m = 8
out = stumpy.stump(T, m)
# out
[[inf -1 -1 -1]
[inf -1 -1 -1]
[inf -1 -1 -1]]
In this example, len(T) is 10, and m = 8, and the start index of subsequences are 0, 1, 2. However, since the [default] excl_zone is 2, then it means there is no i,j in {0, 1, 2} that satisfies the exclusion rule. It would be a good idea to raise warning in such scenario. As suggested here, core.check_window_size seems to be a good place for raising that warning.