mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-04-30 15:26:23 +02:00
Update rv_transformation_tests.py
This commit is contained in:
parent
bbb31f6770
commit
05be8a959d
1 changed files with 3 additions and 3 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue