MCPcopy Index your code
hub / github.com/stumpy-dev/stumpy / _ray_mstumped

Function _ray_mstumped

stumpy/mstumped.py:189–357  ·  view source on GitHub ↗

Compute the multi-dimensional z-normalized matrix profile with a `ray` cluster This is a highly distributed implementation around the Numba JIT-compiled parallelized `_mstump` function which computes the multi-dimensional matrix profile according to STOMP. Note that only self-joins

(
    ray_client,
    T_A,
    T_B,
    m,
    excl_zone,
    M_T,
    Σ_T,
    μ_Q,
    σ_Q,
    T_subseq_isconstant,
    Q_subseq_isconstant,
    include,
    discords,
)

Source from the content-addressed store, hash-verified

187
188
189def _ray_mstumped(
190 ray_client,
191 T_A,
192 T_B,
193 m,
194 excl_zone,
195 M_T,
196 Σ_T,
197 μ_Q,
198 σ_Q,
199 T_subseq_isconstant,
200 Q_subseq_isconstant,
201 include,
202 discords,
203):
204 """
205 Compute the multi-dimensional z-normalized matrix profile with a `ray` cluster
206
207 This is a highly distributed implementation around the Numba JIT-compiled
208 parallelized `_mstump` function which computes the multi-dimensional matrix
209 profile according to STOMP. Note that only self-joins are supported.
210
211 Parameters
212 ----------
213 ray_client : client
214 A `ray` client. Setting up a cluster is beyond the scope of this library.
215 Please refer to the `ray` documentation.
216
217 T_A : numpy.ndarray
218 The time series or sequence for which to compute the multi-dimensional
219 matrix profile. Each row in `T_A` represents data from the same
220 dimension while each column in `T_A` represents data from a different
221 dimension.
222
223 T_B : numpy.ndarray
224 The time series or sequence that will be used to annotate T_A. For every
225 subsequence in T_A, its nearest neighbor in T_B will be recorded.
226
227 m : int
228 Window size
229
230 excl_zone : int
231 The half width for the exclusion zone relative to the current
232 sliding window
233
234 M_T : numpy.ndarray
235 Sliding mean of time series, `T`
236
237 Σ_T : numpy.ndarray
238 Sliding standard deviation of time series, `T`
239
240 μ_Q : numpy.ndarray
241 Mean of the query sequence, `Q`, relative to the current sliding window
242
243 σ_Q : numpy.ndarray
244 Standard deviation of the query sequence, `Q`, relative to the current
245 sliding window
246

Callers

nothing calls this directly

Calls 2

_get_multi_QTFunction · 0.85

Tested by

no test coverage detected