mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-18 13:55:14 +02:00
Python 3 fixes
This commit is contained in:
parent
2f0d3b5dcd
commit
ec7334846c
3 changed files with 8 additions and 7 deletions
|
|
@ -1,3 +1,4 @@
|
|||
from __future__ import print_function
|
||||
import numpy as np
|
||||
import scipy as sp
|
||||
import GPy
|
||||
|
|
@ -18,8 +19,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)
|
||||
print(w)
|
||||
print(len(w))
|
||||
assert len(w)==1 # should have one overflow warning
|
||||
|
||||
def test_safe_exp_lower(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue