Update rv_transformation_tests.py

This commit is contained in:
Max Zwiessele 2015-09-12 18:27:42 +01:00
parent bbb31f6770
commit 05be8a959d

View file

@ -13,8 +13,8 @@ class TestModel(GPy.core.Model):
"""
A simple GPy model with one parameter.
"""
def __init__(self):
GPy.core.Model.__init__(self, 'test_model')
def __init__(self, name):
GPy.core.Model.__init__(self, name)
theta = GPy.core.Param('theta', 1.)
self.link_parameter(theta)
@ -25,7 +25,7 @@ class TestModel(GPy.core.Model):
class RVTransformationTestCase(unittest.TestCase):
def _test_trans(self, trans):
m = TestModel()
m = TestModel(trans.name)
prior = GPy.priors.LogGaussian(.5, 0.1)
m.theta.set_prior(prior)
m.theta.unconstrain()