-
-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Supporting more MCMCChains variable names #211
Comments
Was there ever a resolution on this? I think I'm hitting an issue with a project I'm working on. |
No, we haven't implemented a solution for this (mostly because no one else reported this being an issue). But now that The long-term goal was to make Can you share what your |
Hey @sethaxen so a slice of an example fast run gives names like this (yes I know the convergence is horrible here ;-) ): Summary Statistics
parameters mean std mcse ess_bulk ess_tail rhat ess_per_sec
Symbol Float64 Float64 Float64 Float64 Float64 Float64 Float64
latent.latent_init[1] -0.0390 0.0928 0.0246 14.7598 65.6111 1.2054 0.0129
latent.σ_AR 0.4779 0.2497 0.1204 4.8553 11.2507 2.5235 0.0042
latent.ar_init[1] 0.0588 0.1163 0.0403 8.8253 15.4617 1.3860 0.0077
latent.damp_AR[1] 0.4611 0.1653 0.0787 4.8405 11.6086 2.5636 0.0042
latent.ϵ_t[1] -0.0325 0.2224 0.0860 6.1744 27.2663 1.7365 0.0054
latent.ϵ_t[2] -0.6047 0.6202 0.2991 4.6042 11.6951 3.0378 0.0040
init_incidence 4.6052 0.0000 0.0000 2131.9378 1288.5933 1.0015 1.8563
obs.std 0.2493 0.3386 0.1667 4.8690 11.5049 2.4899 0.0042
obs.ϵ_t[1] 0.1988 0.4118 0.1979 5.6882 15.6413 1.9164 0.0050 |
Okay, I think we can support this by removing support for the old |
Wow! Quick work. Thanks. |
@SamuelBrand1, with the just-released ArviZ v0.11.0, you shouldn't have any issues with your example model, but let me know if you run into any. (e.g. instead you would get the variable names Note that many of the fancy indexing cases in #211 (comment) will now no longer error but will instead just not be processed into multi-dimensional arrays. |
Thanks so much, I'll give this a whirl now |
It works for our use case! Thanks so much for the speedy work here. |
No problem! |
Currently
from_mcmcchains
assumes that all variable names are single-bracket-delimited or dot-delimited. However, quite complicated names are possible:If we call
from_mcmcchains
on this, we get an uninformative error.Ideally we would like to get an
InferenceData
withbar.b
andbar.c
as variables. However, since the modeler can arbitrarily index and reindex and callgetproperty
to make arbitrarily complicated types, always doing the right thing is probably not possible. Also, MCMCChains's own machinery for combining flattened parameters into parameter arrays doesn't do a great job here.For the short term then, I think it makes the most sense to raise an informative error of splitting by brackets produces anything more complicated than a tuple of integer indices. If users find this constraining and open issues, we can discuss supporting slightly more complicated indexing syntaxes.
The text was updated successfully, but these errors were encountered: