-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Latex representation broken for models with SymbolicDistributions #5616
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
Comments
I can have a look into this |
Seems like there are two things here that can be fixed: the graphviz and LaTeX printing representation of the model with In general, the approach seems to first call Should graphviz and LaTeX printing be manually adapted to each |
We should create a dispatch function like we do for logp or get_moment. For RandomVariables it will do what you mentioned based on the op, but for symbolic distributions we can customize. This also ensures we have a default catch all when new Symbolic distributions are implemented without a specific representation, instead of failing like in the original issue here. |
Alternatively we can check if aeppl printing capabilities could be useful here: https://github.com/aesara-devs/aeppl/blob/main/aeppl/printing.py I am not familiar with either that code or pymc's. Maybe @brandonwillard can weigh in |
Aesara's printing uses dispatch, but not via Anyway, Aesara's printer framework is easily the best approach for any type of printing, because it already has a lot of things covered, and any custom printing will need to cover most of the same ground. |
@larryshamalama Any progress on this one? |
Not quite 😅 I started PR #5634 which also sat on the back burner... I can give these efforts a push. Did you want to look into this issue? |
Would be nice to fix this one, as is a current V4 blocker :) |
The text was updated successfully, but these errors were encountered: