Closed tillahoffmann closed 2 years ago
Thanks. Looks interesting.
We're only using GitHub right now for bugs and confirmed features (i.e., features which have been discussed on the Stan forums). So the thing to do would be to post there first.
I'm going to close this for now. Adding features that are not currently in RStan (including the hypothetical RStan 3) is out of scope right now.
I also think you might be able to implement this with a plugin.
This PR
get_samples(param: str, flatten_chains: bool = True) -> np.ndarray
to theFit
object which reproduces the behaviour of__getitem__
by default. However, settingflatten_chains=False
leaves the trailing dimension as(num_saved_samples, num_chains)
. This behaviour is useful for comparing initialisations of different chains, computing Rhat, etc.chain__
column to the data frame produced byFit.to_frame
which can be used to identify which chain generated a given sample.