Skip to content

Commit c5ae227

Browse files
authored
use a .05 relative tolerance instead of absolute (#6157)
1 parent eff1cf2 commit c5ae227

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pymc/tests/gp/test_util.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,11 @@ def setup_method(self):
5959
def test_kmeans(self):
6060
X = self.x[:, None]
6161
Xu = pm.gp.util.kmeans_inducing_points(2, X).flatten()
62-
npt.assert_allclose(np.asarray(self.centers), np.sort(Xu), atol=0.1)
62+
npt.assert_allclose(np.asarray(self.centers), np.sort(Xu), rtol=0.05)
6363

6464
X = at.as_tensor_variable(self.x[:, None])
6565
Xu = pm.gp.util.kmeans_inducing_points(2, X).flatten()
66-
npt.assert_allclose(np.asarray(self.centers), np.sort(Xu), atol=0.1)
66+
npt.assert_allclose(np.asarray(self.centers), np.sort(Xu), rtol=0.05)
6767

6868
def test_kmeans_raises(self):
6969
with pytest.raises(TypeError):

0 commit comments

Comments
 (0)