@@ -49,8 +49,8 @@ def _compute_and_update_PI_kernel(
4949 The time series or sequence for which to compute the dot product
5050
5151 T_B : ndarray
52- The time series or sequence that contain your query subsequence
53- of interest
52+ The time series or sequence that will be used to annotate T_A. For every
53+ subsequence in T_A, its nearest neighbor in T_B will be recorded.
5454
5555 m : int
5656 Window size
@@ -197,8 +197,8 @@ def _gpu_stump(
197197 the matrix profile
198198
199199 T_B_fname : str
200- The file name for the time series or sequence that contain your
201- query subsequences of interest
200+ The file name for the time series or sequence that will be used to annotate T_A.
201+ For every subsequence in T_A, its nearest neighbor in T_B will be recorded.
202202
203203 m : int
204204 Window size
@@ -266,12 +266,12 @@ def _gpu_stump(
266266
267267 See Table II, Figure 5, and Figure 6
268268
269- Timeseries, T_B , will be annotated with the distance location
270- (or index) of all its subsequences in another times series, T_A .
269+ Timeseries, T_A , will be annotated with the distance location
270+ (or index) of all its subsequences in another times series, T_B .
271271
272- Return: For every subsequence, Q, in T_B , you will get a distance
272+ Return: For every subsequence, Q, in T_A , you will get a distance
273273 and index for the closest subsequence in T_A. Thus, the array
274- returned will have length T_B .shape[0]-m+1. Additionally, the
274+ returned will have length T_A .shape[0]-m+1. Additionally, the
275275 left and right matrix profiles are also returned.
276276
277277 Note: Unlike in the Table II where T_A.shape is expected to be equal
@@ -387,8 +387,9 @@ def gpu_stump(T_A, m, T_B=None, ignore_trivial=True, device_id=0):
387387 Window size
388388
389389 T_B : (optional) ndarray
390- The time series or sequence that contain your query subsequences
391- of interest. Default is `None` which corresponds to a self-join.
390+ The time series or sequence that will be used to annotate T_A. For every
391+ subsequence in T_A, its nearest neighbor in T_B will be recorded. Default is
392+ `None` which corresponds to a self-join.
392393
393394 ignore_trivial : bool
394395 Set to `True` if this is a self-join. Otherwise, for AB-join, set this
@@ -415,12 +416,12 @@ def gpu_stump(T_A, m, T_B=None, ignore_trivial=True, device_id=0):
415416
416417 See Table II, Figure 5, and Figure 6
417418
418- Timeseries, T_B , will be annotated with the distance location
419- (or index) of all its subsequences in another times series, T_A .
419+ Timeseries, T_A , will be annotated with the distance location
420+ (or index) of all its subsequences in another times series, T_B .
420421
421- Return: For every subsequence, Q, in T_B , you will get a distance
422- and index for the closest subsequence in T_A . Thus, the array
423- returned will have length T_B .shape[0]-m+1. Additionally, the
422+ Return: For every subsequence, Q, in T_A , you will get a distance
423+ and index for the closest subsequence in T_B . Thus, the array
424+ returned will have length T_A .shape[0]-m+1. Additionally, the
424425 left and right matrix profiles are also returned.
425426
426427 Note: Unlike in the Table II where T_A.shape is expected to be equal
@@ -440,12 +441,6 @@ def gpu_stump(T_A, m, T_B=None, ignore_trivial=True, device_id=0):
440441 T_B = T_A
441442 ignore_trivial = True
442443
443- # Swap T_A and T_B for GPU implementation
444- # This keeps the API identical to and compatible with `stumpy.stump`
445- tmp_T = T_A
446- T_A = T_B
447- T_B = tmp_T
448-
449444 T_A , M_T , Σ_T = core .preprocess (T_A , m )
450445 T_B , μ_Q , σ_Q = core .preprocess (T_B , m )
451446
0 commit comments