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

Function test_subspace_include_discords

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

Source from the content-addressed store, hash-verified

194
195@pytest.mark.parametrize("T, m", test_data)
196def test_subspace_include_discords(T, m):
197 discord_idx = 1
198 nn_idx = 4
199 for width in range(T.shape[0]):
200 for i in range(T.shape[0] - width):
201 include = np.asarray(range(i, i + width + 1))
202
203 for k in range(T.shape[0]):
204 ref_S = naive.subspace(
205 T, m, discord_idx, nn_idx, k, include, discords=True
206 )
207 comp_S = subspace(T, m, discord_idx, nn_idx, k, include, discords=True)
208 npt.assert_almost_equal(ref_S, comp_S)
209
210
211@pytest.mark.parametrize("T, m", test_data)

Callers

nothing calls this directly

Calls 1

subspaceFunction · 0.90

Tested by

no test coverage detected