Fixed laplace seed, added debugging for misc tests

This commit is contained in:
Alan Saul 2015-08-18 17:41:25 +01:00
parent 33d8441ac8
commit 624d65493c
3 changed files with 7 additions and 3 deletions

View file

@ -17,6 +17,8 @@ class MiscTests(np.testing.TestCase):
assert np.isinf(np.exp(self._lim_val_exp + 1))
assert np.isfinite(GPy.util.misc.safe_exp(self._lim_val_exp + 1))
print w
print len(w)
assert len(w)==1 # should have one overflow warning
def test_safe_exp_lower(self):