aripakman / hmc-binary

Exact Hamiltonian Monte Carlo Sampler for Binary Distributions
11 stars 1 forks source link

Construct persistent Markov Chain #1

Closed Kublai-Jing closed 9 years ago

Kublai-Jing commented 10 years ago

Hi, I am interested in learning RBM using persistent MCMC with your HMC sampler. My question is, how do we construct several parallel persistent markov chains with the code? Do we just store the samples returned by HMC and use them as the initial_X in the next round?

Thank you.

aripakman commented 10 years ago

Hi Kublai-Jing,

thanks for your interest in the HMC sampler. As you suggest, storing the samples and using them as the initial condition in the next round will work.

But I think that, for the specific case of RBM, the HMC sampler will not do better than the standard block Gibbs sampler. The reason is that when conditioning on one layer of the RBM, the variables on the other layer are independent, and therefore the Gibbs sampler mixes very fast.

Ari

Kublai-Jing commented 10 years ago

Hi Ari, Thank you for the reply ! my model is not really a RBM, but more like a semi-RBM so I thought it's worth trying to run HMC instead of block Gibbs. Another quick question: do I have to store the 'velocity' variables and use them to initialize the V in the next round ? or it is okay with your code to just resample from a standard Gaussian everytime I continue the Markov Chain.

Thank you.

aripakman commented 10 years ago

Hi Kublai-Jing, the velocity should be resampled for every new sample in the Markov chain. Ari

Kublai-Jing commented 10 years ago

Thanks a lot !