def test_equiv_norm(): x = np.array([1, 2, 3, 4]) aitchison_norm = norm(x) euclidean_norm = np.linalg.norm(ilr(x)) assert_almost_equal(aitchison_norm, euclidean_norm)
def test_equiv_norm(): x = np.array([1, 2, 3, 4]) aitchison_norm = norm(x) euclidean_norm = np.linalg.norm(ilr(x)) assert aitchison_norm == pytest.approx(euclidean_norm)