| 58 | @pytest.mark.filterwarnings("ignore:\\s+Port 8787 is already in use:UserWarning") |
| 59 | @pytest.mark.parametrize("T_A, T_B", test_data) |
| 60 | def test_stumped_ray_self_join(T_A, T_B, ray_cluster): |
| 61 | if not RAY_IMPORTED: # pragma: no cover |
| 62 | pytest.skip("Skipping Test Ray Not Installed") |
| 63 | |
| 64 | m = 3 |
| 65 | zone = int(np.ceil(m / 4)) |
| 66 | ref_mp = naive.stump(T_B, m, exclusion_zone=zone) |
| 67 | comp_mp = stumped(ray, T_B, m, ignore_trivial=True) |
| 68 | naive.replace_inf(ref_mp) |
| 69 | naive.replace_inf(comp_mp) |
| 70 | npt.assert_almost_equal(ref_mp, comp_mp) |
| 71 | |
| 72 | |
| 73 | @pytest.mark.filterwarnings("ignore:numpy.dtype size changed") |