It seems that stumpy.stumpi.py needs to calculate matrix profile (mp) in the beginning of the algorithm.
https://github.com/TDAmeritrade/stumpy/blob/576de379994896063be71d264e48a08ae17476cf/stumpy/stumpi.py#L118
And, then it will be updated quickly for each new individual, scaler value t (because, I think it just needs to calculate a new distance profile for considering t and update matrix profile.
But, what if the initial T is big? In that case, user may want to use stumped or gpu_stump to get mp, and then pass it to stumpy.stumpi.py. Or, maybe they store it somewhere and decide to use it later.
So, I was wondering if it would be reasonable to do this:
def __init__(..., mp=None):
"""
mp: numpy.ndarray, default None
the matrix profile of `T`. If user haven't calculated it yet, set it to None. Otherwise, it is user's responsibility to make sure the input
`mp` is correct.
"""
if mp is None:
mp = stump(self._T, self._m) # user can now calculate the `mp` using `gpu_stump`
It seems that
stumpy.stumpi.pyneeds to calculatematrix profile (mp)in the beginning of the algorithm.https://github.com/TDAmeritrade/stumpy/blob/576de379994896063be71d264e48a08ae17476cf/stumpy/stumpi.py#L118
And, then it will be updated quickly for each new individual, scaler value
t(because, I think it just needs to calculate a new distance profileforconsideringtand update matrix profile.But, what if the initial
Tis big? In that case, user may want to usestumpedorgpu_stumpto getmp, and then pass it tostumpy.stumpi.py. Or, maybe they store it somewhere and decide to use it later.So, I was wondering if it would be reasonable to do this: