Context:
I am implementing Gaussian Bernoulli RBM, it is like the popular RBM but with real-valued visible units.
True that the procedure of sampling hidden values p(h=1|v)
are the same for both, i.e.
Problem:
My problem is in coding (using Python) p(v|h)
, which is,
I am a little bit confused as to how N() works. Do I simply add Gaussian noise using the data's standard deviation to b + sigma * W.dot(h)
?
Thank you in advance.
scipy
's methods, that equation is simplyv = stats.norm.rvs( loc=b + sigma * W.dot(h), scale=sigma )
, not sure what is ambiguous here? – Lianna