mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-07 11:02:38 +02:00
Fixed laplace seed, added debugging for misc tests
This commit is contained in:
parent
33d8441ac8
commit
624d65493c
3 changed files with 7 additions and 3 deletions
|
|
@ -9,8 +9,7 @@ import inspect
|
|||
from GPy.likelihoods import link_functions
|
||||
from GPy.core.parameterization import Param
|
||||
from functools import partial
|
||||
#np.random.seed(300)
|
||||
#np.random.seed(4)
|
||||
fixed_seed = 0
|
||||
|
||||
#np.seterr(divide='raise')
|
||||
def dparam_partial(inst_func, *args):
|
||||
|
|
@ -105,7 +104,7 @@ class TestNoiseModels(object):
|
|||
Generic model checker
|
||||
"""
|
||||
def setUp(self):
|
||||
np.random.seed(0)
|
||||
np.random.seed(fixed_seed)
|
||||
self.N = 15
|
||||
self.D = 3
|
||||
self.X = np.random.rand(self.N, self.D)*10
|
||||
|
|
@ -704,6 +703,7 @@ class LaplaceTests(unittest.TestCase):
|
|||
"""
|
||||
|
||||
def setUp(self):
|
||||
np.random.seed(fixed_seed)
|
||||
self.N = 15
|
||||
self.D = 1
|
||||
self.X = np.random.rand(self.N, self.D)*10
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue