Skip to content

a Python implementaion of Reimannian Manifold Hamiltonian Monte Carlo variant of the MCMC

License

Notifications You must be signed in to change notification settings

puat133/Reimmanian-Manifold-HMC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Reimmanian-Manifold-HMC

This GitHub repository is a Python implementaion of Reimannian Manifold Hamiltonian Monte Carlo variant of the MCMC. By default it is using Betancourt softabs mapping of the Hessian matrix of the target distribution. To use it, you only need to specify your target distribution negative logaritmic function. See test.ipynb for the usage tutorial. To be enabled to use this package, you need to install jax first. Follow the instruction Here

x_init = np.array([0.,0.])
p_init = np.array([0.,0.])
hmc = Rmhmc.RMHMC(1000,target,x_init,p_init,seed=onp.random.randint(1,1000))
hmc.track=True
target.softabs_const = 1e0
hmc.epsilon *= 0.05
hmc.l *=100
hmc.run()

Funnel Distribution

About

a Python implementaion of Reimannian Manifold Hamiltonian Monte Carlo variant of the MCMC

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published