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

Function test_maamp_mdl

tests/test_maamp.py:149–159  ·  view source on GitHub ↗
(T, m)

Source from the content-addressed store, hash-verified

147
148@pytest.mark.parametrize("T, m", test_data)
149def test_maamp_mdl(T, m):
150 subseq_idx = np.full(T.shape[0], 1)
151 nn_idx = np.full(T.shape[0], 4)
152
153 for p in [1.0, 2.0, 3.0]:
154 ref_MDL, ref_S = naive.maamp_mdl(T, m, subseq_idx, nn_idx, p=p)
155 comp_MDL, comp_S = maamp_mdl(T, m, subseq_idx, nn_idx, p=p)
156 npt.assert_almost_equal(ref_MDL, comp_MDL)
157
158 for ref, cmp in zip(ref_S, comp_S):
159 npt.assert_almost_equal(ref, cmp)
160
161
162def test_naive_maamp():

Callers

nothing calls this directly

Calls 1

maamp_mdlFunction · 0.90

Tested by

no test coverage detected