MCPcopy
hub / github.com/stumpy-dev/stumpy / _gpu_stump

Function _gpu_stump

stumpy/gpu_stump.py:208–479  ·  view source on GitHub ↗

A Numba CUDA version of STOMP for parallel computation of the matrix profile, matrix profile indices, left matrix profile indices, and right matrix profile indices. Parameters ---------- T_A_fname : str The file name for the time series or sequence for which to comp

(
    T_A_fname,
    T_B_fname,
    m,
    range_stop,
    excl_zone,
    μ_Q_fname,
    σ_Q_fname,
    QT_fname,
    QT_first_fname,
    M_T_fname,
    Σ_T_fname,
    Q_subseq_isconstant_fname,
    T_subseq_isconstant_fname,
    w,
    ignore_trivial=True,
    range_start=1,
    device_id=0,
    k=1,
)

Source from the content-addressed store, hash-verified

206
207
208def _gpu_stump(
209 T_A_fname,
210 T_B_fname,
211 m,
212 range_stop,
213 excl_zone,
214 μ_Q_fname,
215 σ_Q_fname,
216 QT_fname,
217 QT_first_fname,
218 M_T_fname,
219 Σ_T_fname,
220 Q_subseq_isconstant_fname,
221 T_subseq_isconstant_fname,
222 w,
223 ignore_trivial=True,
224 range_start=1,
225 device_id=0,
226 k=1,
227):
228 """
229 A Numba CUDA version of STOMP for parallel computation of the
230 matrix profile, matrix profile indices, left matrix profile indices,
231 and right matrix profile indices.
232
233 Parameters
234 ----------
235 T_A_fname : str
236 The file name for the time series or sequence for which to compute
237 the matrix profile
238
239 T_B_fname : str
240 The file name for the time series or sequence that will be used to annotate T_A.
241 For every subsequence in T_A, its nearest neighbor in T_B will be recorded.
242
243 m : int
244 Window size
245
246 range_stop : int
247 The index value along T_B for which to stop the matrix profile
248 calculation. This parameter is here for consistency with the
249 distributed `stumped` algorithm.
250
251 excl_zone : int
252 The half width for the exclusion zone relative to the current
253 sliding window
254
255 μ_Q_fname : str
256 The file name for the mean of the query sequence, `Q`, relative to
257 the current sliding window
258
259 σ_Q_fname : str
260 The file name for the standard deviation of the query sequence, `Q`,
261 relative to the current sliding window
262
263 QT_fname : str
264 The file name for the dot product between some query sequence,`Q`,
265 and time series, `T`

Callers 1

gpu_stumpFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected