question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Adaptation support / example for multiple chains

See original GitHub issue

Dear blackjax team,

Thank you for your hard work, this project is really cool!

I’ve been playing around with the PyMC support, and I think I’ve managed to update the example notebook to use PyMC v4 and aesara. This wasn’t very hard to do thankfully, and I’ll be happy to contribute it as a new example / update the old one if that’s of interest.

However, my ultimate aim would be to include blackjax as part of the recent MCMC speed comparisons (see code and blog post). To get the best out of blackjax, I’d like to run four chains in parallel like with the other methods. That’s where I’ve run into a bit of trouble! There’s an example of sampling multiple chains in the Intro notebook here but I don’t see anything about also doing separate adaptation…! I’m actually not sure what the best way to go is there – should chains be adapted separately or one step size and mass matrix should be estimated and shared in a warmup (probably)?

In any case, I feel like an example of how best to do adaption with multiple chains would be helpful to add. Please let me know if I missed an existing example somewhere, or if there is already a recommended approach.

Thanks for your help, Martin

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:12 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
rloufcommented, Jan 29, 2022

You’re welcome! You’ll hopefully find the user interface more pleasant as well 😃

1reaction
rloufcommented, Jan 28, 2022

Hey @martiningram lots of work since I last replied on #153 and #159. We’ve identified one major difference with Numpyro which likely explains the perf difference, will keep you posted!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Value chain resilience through adaptation and transformation
Two approaches to resilient value chains: adaptation and transformation · Adaptation: multiple small steps.
Read more >
Adaptation of Chain Event Graphs for use with Case-Control ...
The adaptations are illustrated with complete, reproducible, fully-interpreted examples, including the event tree and chain event graph.
Read more >
Creating synergy with boundary chains: Can they improve ...
First, regarding knowledge production, each chain combined climate information (from GLISA) and non-climate information (from the linked organization) to  ...
Read more >
Self-regenerative Markov chain Monte Carlo with adaptation
Markov chain and maintains consistency of the sample path averages. Their set-up can be used for adapting the SR algorithm.
Read more >
Adapting supply chain operations in anticipation of and during ...
Supply chain adaptation ahead of a pandemic is more advantageous than during the pandemic when specific operational recovery policies are deployed.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found