I'm running script that compares performance of two different functions f1
and f2
. It can't pass an equality_check
and raises AssertionError: Equality check failure. (f1, f2)
. How can I access argument and outputs of functions where it fails?
perfplot.show(
setup=lambda n: np.random.randint(0, n, size = n),
kernels=[f1, f2],
n_range=[2 ** k for k in range(3, 14)],
logx=True,
logy=True,
xlabel="n",
equality_check=lambda x, y: np.array_equal(x, y)
)