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
9c552bd722
commit
f3f923dcf8
1 changed files with 1 additions and 1 deletions
|
|
@ -34,7 +34,7 @@ class RVTransformationTestCase(unittest.TestCase):
|
||||||
# The PDF of the transformed variables
|
# The PDF of the transformed variables
|
||||||
p_phi = lambda phi : np.exp(-m._objective_grads(phi)[0])
|
p_phi = lambda phi : np.exp(-m._objective_grads(phi)[0])
|
||||||
# To the empirical PDF of:
|
# To the empirical PDF of:
|
||||||
theta_s = prior.rvs(1e6)
|
theta_s = prior.rvs(1e5)
|
||||||
phi_s = trans.finv(theta_s)
|
phi_s = trans.finv(theta_s)
|
||||||
# which is essentially a kernel density estimation
|
# which is essentially a kernel density estimation
|
||||||
kde = st.gaussian_kde(phi_s)
|
kde = st.gaussian_kde(phi_s)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue