rlouf / mcx

Express & compile probabilistic programs for performant inference on CPU & GPU. Powered by JAX.
https://rlouf.github.io/mcx
Apache License 2.0
325 stars 17 forks source link

Add random walk metropolis Hastings #52

Closed rlouf closed 3 years ago

rlouf commented 3 years ago
rlouf commented 3 years ago

The evaluator is now implemented, and sampling seems to be functioning as expected. Parameter (scale) adaptation is left. Since we need to drop many early samples with Metropolis, it would be nice to be able to slice the trace trace[1_000:]. Will be implemented in this PR.

rlouf commented 3 years ago

Closing for now; this should be implemented in BlackJAX.