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