mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-06-02 14:45:15 +02:00
Update rv_transformation_tests.py
This commit is contained in:
parent
e1cfef70b2
commit
84e6a59cad
1 changed files with 3 additions and 1 deletions
|
|
@ -56,8 +56,10 @@ class RVTransformationTestCase(unittest.TestCase):
|
|||
# The following test cannot be very accurate
|
||||
self.assertTrue(np.linalg.norm(pdf_phi - kde(phi)) / np.linalg.norm(kde(phi)) <= 1e-1)
|
||||
# Check the gradients at a few random points
|
||||
print(theta_s.min(), theta_s.max()
|
||||
for i in range(5):
|
||||
m.theta = np.random.uniform(1e-5, 1e-3)
|
||||
print(theta_s[i])
|
||||
m.theta = theta_s[i]
|
||||
self.assertTrue(m.checkgrad(verbose=True))
|
||||
|
||||
def test_Logexp(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue