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

Function test_multi_mass_absolute_seeded

tests/test_maamp.py:26–42  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24
25
26def test_multi_mass_absolute_seeded():
27 np.random.seed(5)
28 T = np.random.uniform(-1000, 1000, [3, 10]).astype(np.float64)
29 m = 5
30
31 trivial_idx = 2
32
33 Q = T[:, trivial_idx : trivial_idx + m]
34
35 ref = naive.multi_mass_absolute(Q, T, m)
36
37 T, T_subseq_isfinite = core.preprocess_non_normalized(T, m)
38 comp = _multi_mass_absolute(
39 Q, T, m, T_subseq_isfinite[:, trivial_idx], T_subseq_isfinite
40 )
41
42 npt.assert_almost_equal(ref, comp, decimal=config.STUMPY_TEST_PRECISION)
43
44
45@pytest.mark.parametrize("T, m", test_data)

Callers

nothing calls this directly

Calls 1

_multi_mass_absoluteFunction · 0.90

Tested by

no test coverage detected