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

Function test_stumped_ray_self_join

tests/test_ray.py:60–70  ·  view source on GitHub ↗
(T_A, T_B, ray_cluster)

Source from the content-addressed store, hash-verified

58@pytest.mark.filterwarnings("ignore:\\s+Port 8787 is already in use:UserWarning")
59@pytest.mark.parametrize("T_A, T_B", test_data)
60def 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")

Callers

nothing calls this directly

Calls 1

stumpedFunction · 0.90

Tested by

no test coverage detected