(T, m)
| 194 | |
| 195 | @pytest.mark.parametrize("T, m", test_data) |
| 196 | def 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) |
nothing calls this directly
no test coverage detected