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.

More intuitive chain extraction methods

See original GitHub issue

Short Description

I’m happy to work on this myself, but before going down that path, is there a simple way to extract samples combined across multiple chains? I know how to do it programmatically, but it would be have this upfront for the user

Code Example or link

something like


param_div_free, param_div = fit.posterior.parameter.extract(combined=True, split_divergence=True)

Also include the ArviZ version and version of any other relevant packages.

Relevant documentation or public examples

I base this off of some of the functionality I enjoyed in the stan utility here:

https://github.com/betanalpha/jupyter_case_studies/issues/4

and things I added here:

https://github.com/grburgess/stan_utility

which I would prefer to abandon and add effort to this project.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:11 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
canyon289commented, Jul 19, 2020

General note. Going to start tagging this with xarray label for things that fall under “Would be nice if we could do this”. Ive got a couple from my bambi work as well

1reaction
percygautamcommented, Jul 18, 2020

I tried the code. It’s working fine and returns a DatasetGroupBy object for idata.posterior.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Intuitive Proof of the Multivariable Chain Rule
The intuitive proof is very easy. The tough part is in veryifying all the relevant inequalities. To understand the proof, you first need...
Read more >
What is the most intuitive way to prove the chain rule? - Quora
I understand chain rule concept in this way: Our objective is to go from A to C, we can either go directly, and...
Read more >
The Chain Rule. An intuitive explanation. Examples of using ...
Author | Bahodir Ahmedov | https://www.dr-ahmath.comSubscribe | https://www.youtube.com/c/drahmath?sub_confirmation=1Intro - (0:00)What is ...
Read more >
The Chain Rule - Intuitive Proof - YouTube
Your browser can't play this video. Learn more. Switch camera.
Read more >
Markov Chains Simply Explained - Towards Data Science
In this article we will consider time-homogenous discrete-time Markov Chains as they are the easiest to work with and build an intuition behind....
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