MCPcopy Create free account
hub / github.com/stumpy-dev/stumpy / test_maamp_subspace_include

Function test_maamp_subspace_include

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

Source from the content-addressed store, hash-verified

104
105@pytest.mark.parametrize("T, m", test_data)
106def test_maamp_subspace_include(T, m):
107 motif_idx = 1
108 nn_idx = 4
109 for width in range(T.shape[0]):
110 for i in range(T.shape[0] - width):
111 include = np.asarray(range(i, i + width + 1))
112
113 for k in range(T.shape[0]):
114 ref_S = naive.maamp_subspace(T, m, motif_idx, nn_idx, k, include)
115 comp_S = maamp_subspace(T, m, motif_idx, nn_idx, k, include)
116 npt.assert_almost_equal(ref_S, comp_S)
117
118
119@pytest.mark.parametrize("T, m", test_data)

Callers

nothing calls this directly

Calls 1

maamp_subspaceFunction · 0.90

Tested by

no test coverage detected