-
-
Notifications
You must be signed in to change notification settings - Fork 11
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 var_names
arg to PyMC compiled model
#100
Comments
👍 Yes, that would be really nice to have. I have a hierarchical model with lots of groups. @aseyboldt , @fonnesbeck: Is it at all possible that my Can you suggest how to circumvent this problem until |
I agree that this would be nice to have (and it wouldn't be that hard to implement, it only needs some changes in the If the model you are looking at is somewhat like the one you posted in the other thread, I'd be surprised if storing the trace is an issue though. The simplest thing to get it faster is probably to switch to float32 (set the env variable And then, I'd double check the parametrization, and make sure your predictors are not too correlated. An easy thing to check to see if that can help is to have a look at the "gradients/draw". If that is large (say > 30 or 15 or so), that means that there is probably quite some room for improvement. This number is pretty much proportional to the runtime if all other things are equal. So if you can get it from 100 to 10, that's a 10x speedup. |
Thanks @aseyboldt for the suggestion, that's really helpful. I also looked into I checked the sampling stats, cf. output below, but I wasn't able to find the "number of gradient evaluations", is it correct to assume that this corresponds to 'n_steps'?
|
To accommodate the customization of variables to store in the trace, it would be helpful to have a similar argument for
CompiledPyMCModel
so that unwanted variables can be ignored by the trace.The text was updated successfully, but these errors were encountered: