-
-
Notifications
You must be signed in to change notification settings - Fork 127
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 convenient function to access list of inference methods #791
Comments
The reason we need a defined and built Bambi model is because with I do think it should be simpler to obtain a list of inference methods. I can imagine defining a "dummy model" similar to here to return a list of methods without the user needing to define and build a model. Another area of improvement I see is how the user can obtain the set of kwargs for a particular inference method. Currently this requires calling bx.Model.from_pymc(model.backend.model).mcmc.blackjax_nuts.get_kwargs() Since different samplers have different kwargs, it should be easier for the user to know what these are. |
I agree the dummy model is the way to go. So what we need is a function similar to the one you linked, that also includes the alternatives built-in pymc, right? |
Yup, I believe so. I can work on it this week 😄 |
We also need to restrict what is returned when calling Nonetheless, if the user attempts to pass
We should be more consistent to not confuse the users. |
In #775 we got access to a great variety of samplers through bayeux. Now I realize it's not that easy to get a list of inference methods. The docstring mentions
model.backend.inference_methods['bayeux']
but that means we not only need a Bambi model, but a Bambi model that has already been built.I think we should have a convenient function to get that list in an easier way. I imagine something like:
that uses the existing logic to return the appropriate list of inference methods, depending on whether bayeux is installed or not.
The text was updated successfully, but these errors were encountered: