Crates.io | hammer-and-sample |
lib.rs | hammer-and-sample |
version | 0.2.0 |
source | src |
created_at | 2021-12-21 15:13:20.036551 |
updated_at | 2023-03-29 19:03:47.115989 |
description | Simplistic MCMC ensemble sampler based on emcee, the MCMC hammer |
homepage | |
repository | https://github.com/adamreichold/hammer-and-sample |
max_upload_size | |
id | 501241 |
size | 32,302 |
A simplistic MCMC sampler implementing the affine-invariant ensemble sampling of emcee with serial execution and optionally with parallel execution based on Rayon.
The implementation is relatively efficient, for example computing 1000 iterations of 100 walkers using the hierarchical model from hierarchical.rs
takes approximately 1 min using emcee
and multiprocessing
versus 50 ms using this crate and Rayon, running on 8 hardware threads in both cases.