larsgeb / hmc-linear-systems Goto Github PK
View Code? Open in Web Editor NEWHamiltonian Monte Carlo implemented for simple linear systems
Home Page: https://larsgeb.github.io/
License: BSD 3-Clause "New" or "Revised" License
Hamiltonian Monte Carlo implemented for simple linear systems
Home Page: https://larsgeb.github.io/
License: BSD 3-Clause "New" or "Revised" License
If a mass matrix is diagonal, a lot of computation can be sped up. Making this explicit will improve performance.
Using a general PD symmetric mass matrix is as of yet not as performant as it was in the 2017 version of the code. The cause is probably the following:
hmc-linear-systems/src/hmc/linearSampler.cpp
Line 117 in 18f7d68
Cholesky decomposition was skipped as part of the optimization. At this point it might be useful to reimplement.
Inefficient integrator, requires a lot of transposes per sample. Consider precomputing.
hmc-linear-systems/src/hmc/linearSampler.cpp
Line 211 in be96549
hmc-linear-systems/src/hmc/linearSampler.cpp
Line 218 in be96549
I would be nice to create documentation on every method and field, as well as a theoretical introduction to HMC. The goal is to use Doxygen, and this will probably be done very incremental.
The code is much faster if positive definiteness is guaranteed for matrix A. It would be helpful if the settings accept a command line option for PD as to perform numerical optimization.
hmc-linear-systems/src/hmc/sampler.cpp
Lines 152 to 169 in 744093f
hmc-linear-systems/src/hmc/sampler.cpp
Lines 153 to 171 in 352b1d5
Energy levels should be evaluated before and after the propagation. In this implementation the energy level is first evaluated before the resampling, which is not valid for the hmc sampler.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.