-
-
Notifications
You must be signed in to change notification settings - Fork 985
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
improved render_model
#3039
improved render_model
#3039
Conversation
EDIT: I got the issue, I'm working on it. |
Hi @fritzo, I am describing the error in detail. Previously, There was no provenance tracking for I have also added the docstring for |
Hi @fritzo, This PR is ready for review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @karm216, thanks for your patience. Your code looks great! I have only minor comments.
Re: testing, I think since this is a visual output and we have no existing tests for get_model_relations()
it is enough to simply rerun tutorial/source/intro_long.ipynb and commit the updated output. I think your improved rendering will improve that tutorial. Feel free to add a sentence or two to that tutorial describing the difference between sample and param nodes, if you think that's needed.
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
Hi @fritzo , I made 3 changes
|
Hi @karm216 it looks like your changes include accidental running of |
Ohh that's my bad! @fritzo , I reverted changes by |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, thanks for updating the notebooks!
Hi @fritzo , Some checks are failed. It looks like there is a problem in installing dependencies. Please let me know if there is a problem at my side. |
It looks like github is buggy. First a microsoft bug broke github actions, then github allowed merging this PR without actions running 🤷 Thanks for the great contribution @karm216, I think many people will appreciate this feature! |
As discussed in #3023, I made the following changes in pyro.infer.inspect.py
_pyro_post_param()
method for provenance tracking forpyro.param
.bool: render_param
argument inrender_model()
to display param in graph.sample_param
andparam_constraint
in dictionary returned byget_model_relations()
generate_graph_specification()
andrender_graph()
to show param in graph returned byrender_model()
@fritzo, Can you please suggest which type of test cases needs to be changed/added to test the above changes?