-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Fix string representation for Bounded distributions #4216
Comments
Thanks for the report and proposed fix @KoljaBauer, want to do a PR? |
As Thomas said, thanks for reporting and proposing a fix @KoljaBauer ! |
I third the thanks for the report and proposing a fix @KoljaBauer! :) As for the fix, I think it's probably better to fix this at the level of |
@Spaak Thank you for addressing it so quick! |
* handling of parameters equal to None * improved type juggling of bounds * updating str repr for bounded variables * adding bounded variable to str/_repr_latex test * updating test * black formatting * removing unused import * change string to r-string
Description of your problem
I am trying to render a pym3 model as a graph. Calling
pymc3.model_to_graphviz(model)
with a model that contains Bounded variables (variables with a distribution wrapped by a bounded distribution) leads to an error:Please provide the full traceback.
Graphviz was installed by executing the following steps:
Proposed solution:
In method
_str_repr
ofdistribution.py
, replacewith
and additionally:
In method
_distr_name_for_repr
ofdistribution.py
, add:Versions and main components
The text was updated successfully, but these errors were encountered: