Accessing a random value in PyMC3

In PyMC2, there are random () and value () methods for generating a random value and obtaining the current value of random variables. Is there a way to do the same in PyMC3?

p = pm.Dirichlet('p', theta=np.array([1., 1., 1.])) p.random() p.value 
+5
source share
1 answer

Not really, but there is almost PR here: https://github.com/pymc-devs/pymc3/pull/784

There is currently no real value, as we maintain state outside of RV.

+1
source

All Articles