Currently, when we perform unit test assertions we do something like:
left = naive.stump(T, m)
right = stumpy.stump(T, m)
np.assert_almost_equal(left, right)
However,left and right are also overloaded since we have left and right matrix profiles and indices. It has been proposed that we replace left with ref instead and either replace right or just name it appropriately (maybe comp for "computed"/"comparison"):
ref_mp = naive.stump(T, m)
mp = stumpy.stump(T, m)
np.assert_almost_equal(ref_mp, mp)
or
ref_mp = naive.stump(T, m)
comp_mp = stumpy.stump(T, m)
np.assert_almost_equal(ref_mp, comp_mp)
Currently, when we perform unit test assertions we do something like:
However,
leftandrightare also overloaded since we have left and right matrix profiles and indices. It has been proposed that we replaceleftwithrefinstead and either replacerightor just name it appropriately (maybecompfor "computed"/"comparison"):or