-
-
Notifications
You must be signed in to change notification settings - Fork 402
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
Add property to remember the list of free RVs #1748
Comments
xarray datasets allow storing any attributes in the There is one caveat however which is that lists may not be allowed as attrs by netcdf, so we should probably extend to/from_netcdf to optionally convert/parse lists/dicts to/from strings using json for example. I think that would also be useful for some custom stan attributes like init point or mass matrix that IIRC are currently stored as string attrs. |
Oh should I have opened the issue in PyMC3, now that the converter lives there? |
What is a free_RV? Could we use similar logic for sparse datastructures from Stan side (e.g. matrices with half containing nan -> cholesky) |
In PyMC3 terminology the free RVs are the input variables to the model. The sampler is concerned with these variables, and while deterministics are also part of the MCMC trace, they are often not interesting to look at in a traceplot. |
related to #420 |
Tell us about it
By passing
var_names = [rv.name for rv in pmodel.free_RVs]
I can limit, for example,plot_trace
to exclude deterministic variables, but it needs the model object.After loading an
InferenceData
from a file this information is no longer around.Thoughts on implementation
An attribute such as
idata.posterior.free_RVs
could be attached and used by some ArviZ plots as the defaultvar_names
.The text was updated successfully, but these errors were encountered: