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

Function test_aamp_match

tests/test_aamp_motifs.py:191–213  ·  view source on GitHub ↗
(Q, T)

Source from the content-addressed store, hash-verified

189
190@pytest.mark.parametrize("Q, T", test_data)
191def test_aamp_match(Q, T):
192 m = Q.shape[0]
193 excl_zone = int(np.ceil(m / 4))
194 max_distance = 0.3
195
196 for p in [1.0, 2.0, 3.0]:
197 left = naive_aamp_match(
198 Q,
199 T,
200 p=p,
201 excl_zone=excl_zone,
202 max_distance=max_distance,
203 )
204
205 right = aamp_match(
206 Q,
207 T,
208 p=p,
209 max_matches=None,
210 max_distance=max_distance,
211 )
212
213 npt.assert_almost_equal(left, right)
214
215
216@pytest.mark.parametrize("Q, T", test_data)

Callers

nothing calls this directly

Calls 2

aamp_matchFunction · 0.90
naive_aamp_matchFunction · 0.85

Tested by

no test coverage detected