mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-27 14:25:16 +02:00
Update rv_transformation_tests.py
This commit is contained in:
parent
bf13f5403d
commit
60613ce891
1 changed files with 1 additions and 0 deletions
|
|
@ -57,6 +57,7 @@ class RVTransformationTestCase(unittest.TestCase):
|
|||
self.assertTrue(np.linalg.norm(pdf_phi - kde(phi)) / np.linalg.norm(kde(phi)) <= 1e-1)
|
||||
|
||||
def _test_grad(self, trans):
|
||||
np.random.seed(1234)
|
||||
m = TestModel(np.random.uniform(.5, 1.5, 20))
|
||||
prior = GPy.priors.LogGaussian(.5, 0.1)
|
||||
m.theta.set_prior(prior)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue