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

Function test_subspace_include

tests/test_mstump.py:171–181  ·  view source on GitHub ↗
(T, m)

Source from the content-addressed store, hash-verified

169
170@pytest.mark.parametrize("T, m", test_data)
171def test_subspace_include(T, m):
172 motif_idx = 1
173 nn_idx = 4
174 for width in range(T.shape[0]):
175 for i in range(T.shape[0] - width):
176 include = np.asarray(range(i, i + width + 1))
177
178 for k in range(T.shape[0]):
179 ref_S = naive.subspace(T, m, motif_idx, nn_idx, k, include)
180 comp_S = subspace(T, m, motif_idx, nn_idx, k, include)
181 npt.assert_almost_equal(ref_S, comp_S)
182
183
184@pytest.mark.parametrize("T, m", test_data)

Callers

nothing calls this directly

Calls 1

subspaceFunction · 0.90

Tested by

no test coverage detected