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

Function test_mstumped_constant_subsequence_self_join

tests/test_mstumped.py:115–128  ·  view source on GitHub ↗
(dask_cluster)

Source from the content-addressed store, hash-verified

113
114@pytest.mark.filterwarnings("ignore:\\s+Port 8787 is already in use:UserWarning")
115def test_mstumped_constant_subsequence_self_join(dask_cluster):
116 with Client(dask_cluster) as dask_client:
117 T_A = np.concatenate(
118 (np.zeros(20, dtype=np.float64), np.ones(5, dtype=np.float64))
119 )
120 T = np.array([T_A, T_A, np.random.rand(T_A.shape[0])])
121 m = 3
122
123 excl_zone = int(np.ceil(m / 4))
124
125 ref_P, ref_I = naive.mstump(T, m, excl_zone)
126 comp_P, comp_I = mstumped(dask_client, T, m)
127
128 npt.assert_almost_equal(ref_P, comp_P) # ignore indices
129
130
131@pytest.mark.filterwarnings("ignore:\\s+Port 8787 is already in use:UserWarning")

Callers

nothing calls this directly

Calls 1

mstumpedFunction · 0.90

Tested by

no test coverage detected