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

Function test_stumped_self_join

tests/test_stumped.py:54–62  ·  view source on GitHub ↗
(T_A, T_B, dask_cluster)

Source from the content-addressed store, hash-verified

52@pytest.mark.filterwarnings("ignore:\\s+Port 8787 is already in use:UserWarning")
53@pytest.mark.parametrize("T_A, T_B", test_data)
54def test_stumped_self_join(T_A, T_B, dask_cluster):
55 with Client(dask_cluster) as dask_client:
56 m = 3
57 zone = int(np.ceil(m / 4))
58 ref_mp = naive.stump(T_B, m, exclusion_zone=zone)
59 comp_mp = stumped(dask_client, T_B, m, ignore_trivial=True)
60 naive.replace_inf(ref_mp)
61 naive.replace_inf(comp_mp)
62 npt.assert_almost_equal(ref_mp, comp_mp)
63
64
65@pytest.mark.filterwarnings("ignore:numpy.dtype size changed")

Callers

nothing calls this directly

Calls 1

stumpedFunction · 0.90

Tested by

no test coverage detected