MCPcopy
hub / github.com/stumpy-dev/stumpy / test_gpu_stump_self_join

Function test_gpu_stump_self_join

tests/test_gpu_stump.py:56–67  ·  view source on GitHub ↗
(T_A, T_B)

Source from the content-addressed store, hash-verified

54@pytest.mark.parametrize("T_A, T_B", test_data)
55@patch("stumpy.config.STUMPY_THREADS_PER_BLOCK", TEST_THREADS_PER_BLOCK)
56def test_gpu_stump_self_join(T_A, T_B):
57 m = 3
58 zone = int(np.ceil(m / 4))
59 ref_mp = naive.stump(T_B, m, exclusion_zone=zone, row_wise=True)
60 comp_mp = gpu_stump(T_B, m, ignore_trivial=True)
61 naive.replace_inf(ref_mp)
62 naive.replace_inf(comp_mp)
63 npt.assert_almost_equal(ref_mp, comp_mp)
64
65 comp_mp = gpu_stump(pd.Series(T_B), m, ignore_trivial=True)
66 naive.replace_inf(comp_mp)
67 npt.assert_almost_equal(ref_mp, comp_mp)
68
69
70@pytest.mark.filterwarnings("ignore", category=NumbaPerformanceWarning)

Callers

nothing calls this directly

Calls 1

gpu_stumpFunction · 0.85

Tested by

no test coverage detected