(T, m)
| 147 | |
| 148 | @pytest.mark.parametrize("T, m", test_data) |
| 149 | def test_maamp_mdl(T, m): |
| 150 | subseq_idx = np.full(T.shape[0], 1) |
| 151 | nn_idx = np.full(T.shape[0], 4) |
| 152 | |
| 153 | for p in [1.0, 2.0, 3.0]: |
| 154 | ref_MDL, ref_S = naive.maamp_mdl(T, m, subseq_idx, nn_idx, p=p) |
| 155 | comp_MDL, comp_S = maamp_mdl(T, m, subseq_idx, nn_idx, p=p) |
| 156 | npt.assert_almost_equal(ref_MDL, comp_MDL) |
| 157 | |
| 158 | for ref, cmp in zip(ref_S, comp_S): |
| 159 | npt.assert_almost_equal(ref, cmp) |
| 160 | |
| 161 | |
| 162 | def test_naive_maamp(): |
nothing calls this directly
no test coverage detected