How to generate a sample from a generative model like a Restricted Boltzmann Machine?
I am learning about the Boltzmann machine. So far, I have successfully written a code that can learn the coefficients of the energy function of a Restricted Boltzmann Machine. Now, since my model is generative (if I have understood things correctly so far) and I know for sure that RBMs can be used for inpainting in binary images at least, I want to know how I can generate a sample from my probabilistic distribution given by the Boltzmann machine. That is how a new binary image based on the training dataset is generated by my model.
However, even though mathematically the idea seems clear, I do not know how I can program a computer to sample from a distribution.
Topic probabilistic-programming probability programming rbm
Category Data Science