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

Function test_mdl

tests/test_non_normalized_decorator.py:342–351  ·  view source on GitHub ↗
(T, m)

Source from the content-addressed store, hash-verified

340
341@pytest.mark.parametrize("T, m", test_data)
342def test_mdl(T, m):
343 subseq_idx = np.full(T.shape[0], 1)
344 nn_idx = np.full(T.shape[0], 4)
345
346 ref_MDL, ref_S = maamp_mdl(T, m, subseq_idx, nn_idx)
347 comp_MDL, comp_S = mdl(T, m, subseq_idx, nn_idx, normalize=False)
348 npt.assert_almost_equal(ref_MDL, comp_MDL)
349
350 for ref, cmp in zip(ref_S, comp_S):
351 npt.assert_almost_equal(ref, cmp)
352
353
354@pytest.mark.parametrize("T, m", test_data)

Callers

nothing calls this directly

Calls 2

maamp_mdlFunction · 0.90
mdlFunction · 0.90

Tested by

no test coverage detected