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

Function test_mmotifs_with_default_parameters

tests/test_mmotifs.py:54–73  ·  view source on GitHub ↗
(T)

Source from the content-addressed store, hash-verified

52
53@pytest.mark.parametrize("T", test_data)
54def test_mmotifs_with_default_parameters(T):
55 motif_distances_ref = np.array([[0.0000000e00, 1.1151008e-07]])
56 motif_indices_ref = np.array([[2, 9]])
57 motif_subspaces_ref = [np.array([1])]
58 motif_mdls_ref = [np.array([232.0, 250.57542476, 260.0, 271.3509059])]
59
60 m = 4
61 excl_zone = int(np.ceil(m / config.STUMPY_EXCL_ZONE_DENOM))
62 P, I = naive.mstump(T, m, excl_zone)
63 (
64 motif_distances_cmp,
65 motif_indices_cmp,
66 motif_subspaces_cmp,
67 motif_mdls_cmp,
68 ) = mmotifs(T, P, I)
69
70 npt.assert_array_almost_equal(motif_distances_ref, motif_distances_cmp)
71 npt.assert_array_almost_equal(motif_indices_ref, motif_indices_cmp)
72 npt.assert_array_almost_equal(motif_subspaces_ref, motif_subspaces_cmp)
73 npt.assert_array_almost_equal(motif_mdls_ref, motif_mdls_cmp)
74
75
76@pytest.mark.parametrize("T", test_data)

Callers

nothing calls this directly

Calls 1

mmotifsFunction · 0.90

Tested by

no test coverage detected