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

Function test_maamp_subspace

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

Source from the content-addressed store, hash-verified

92
93@pytest.mark.parametrize("T, m", test_data)
94def test_maamp_subspace(T, m):
95 motif_idx = 1
96 nn_idx = 4
97
98 for p in [1.0, 2.0, 3.0]:
99 for k in range(T.shape[0]):
100 ref_S = naive.maamp_subspace(T, m, motif_idx, nn_idx, k, p=p)
101 comp_S = maamp_subspace(T, m, motif_idx, nn_idx, k, p=p)
102 npt.assert_almost_equal(ref_S, comp_S)
103
104
105@pytest.mark.parametrize("T, m", test_data)

Callers

nothing calls this directly

Calls 1

maamp_subspaceFunction · 0.90

Tested by

no test coverage detected