-
-
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
Expand dimensionality notebook #5746
Expand dimensionality notebook #5746
Conversation
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
27b87ad
to
c025340
Compare
0b82f29
to
ad20354
Compare
Please don't force-push as it confuses reviewnb. |
ReviewNB seems useless in this case anyway. I suggest checking the rendered docs directly: https://pymc--5746.org.readthedocs.build/en/5746/learn/core_notebooks/dimensionality.html |
It's nice for review though.
…On Fri, May 6, 2022 at 12:10 PM Ricardo Vieira ***@***.***> wrote:
Please don't force-push as it confuses reviewnb.
ReviewNB seems useless in this case anyway. I suggest checking the
rendered docs directly:
https://pymc--5746.org.readthedocs.build/en/5746/learn/core_notebooks/dimensionality.html
—
Reply to this email directly, view it on GitHub
<#5746 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAFETGHJ7A42XBJWKXDFK5LVITVZTANCNFSM5VFS6AUQ>
.
You are receiving this because your review was requested.Message ID:
***@***.***>
|
You can't see the graphviz outputs. But what did force-push screw up? |
It didn't allow me to post the comments so I had to copy&paste them over. |
To the danger of becoming a broken record, I think we should define the intended audience of this notebook so that we are all on the same page and can make meaningful reviews. For example,
I thought the idea was originally to make a beginner level doc, not really sure now, but I do agree there seems to be a tension here. IMO the scope is quite ambitious and more fitting of advanced level notebook, but the style is more beginner like. i.e. beginners probably don't need to care about all 3 shape, size and dims, 2 at most, and at the same time advanced users don't need to be taught to use size/dims instead of list comprehensions of variables |
@@ -9,28 +9,29 @@ | |||
}, |
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.
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.
I would not do it here
@@ -9,28 +9,29 @@ | |||
}, |
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.
One thing that we didn't mention is what coords are used in arviz when the model only defines the dimension name and lets the explicit or implicit size/shape determine the final shape of the RV.
Reply via ReviewNB
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.
I think it's fine to omit that detail from here, as this is not so concerned with the InferenceData machinery
@ricardoV94 do you need a review from me before the discussion in #5754 is settled or are you good? Want to make sure youre supported :) |
Good for now! Thanks :D |
ad20354
to
8333a1e
Compare
Ready for re-review. I have addressed several comments and removed size explanations for now. |
8333a1e
to
c55967e
Compare
Yeah I forgot to go over the typos, will push again in a sec |
fdc78ab
to
0e21bb7
Compare
Okay, I cleaned and force-pushed for the last time for a while. Check the second commit in ReviewNB to see the differences between now and the original PR commit |
Regarding black, the only sensible thing is to add it to the pre-commit. Why haven't we done so already? |
ReadTheDocs is erroring out with
|
@ricardoV94 check the source of the |
Yeah probably something like that |
@@ -9,231 +9,1402 @@ | |||
}, |
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.
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.
Yeah, I am not sure why...
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.
Don't you use a ##
thing?
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.
This is reviewnb messing up, the rendered version looks right: https://pymcio--5746.org.readthedocs.build/projects/docs/en/5746/learn/core_notebooks/dimensionality.html#id1
@@ -9,231 +9,1402 @@ | |||
}, |
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.
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.
Coords are explicit, but when you define a distribution you used dims. Or what did you mean?
@@ -9,231 +9,1402 @@ | |||
}, |
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.
Theres all these new words introduced like implcit dimensions, or parameter core dimensions, but theyre not listed at the top. I think its good if they were so its clear what is going to be explained throughout this doc, and provides an easy reference. If they can be linked to the heading in this notebook thatd be even better
Reply via ReviewNB
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.
I think that all the important terms are mentioned in the beginning, and this text clearly states we need to introduce a new concept (core dimensions), just to understand this example. I don't think this concept is as critical to be listed at the top.
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.
RE rtd failure: we need to do a couple updates to conf.py
Should be updated to:
# myst config
nb_execution_mode = "force"
nb_kernel_rgx_aliases = {".*": "python3"}
myst_enable_extensions = ["colon_fence", "deflist", "dollarmath", "amsmath", "substitution"]
myst_substitutions = {
"version_slug": rtd_version,
}
myst_heading_anchors = None
The failure is due to the nb_kernel...
one. By default, sphinx executes each notebook with the kernel name listed in the ipynb file which is pymc here, not python3 like the other notebooks. Adding this overrides the kernel provided by the notebook and executes all notebooks with the python3 kernel (the only one we have installed on readthedocs). The other changes are updating/removing deprecated parameters.
c0eed0d
to
3748814
Compare
Ready for re-review |
474aa67
to
c6d97c1
Compare
The text in all admonitions ends with In admonitions, the text can start in the same line as the opening of the directive, but the closing fence must always be on a different line. The line in which the content is written defines how sphinx interprets that content, see https://sphinx-primer.readthedocs.io/en/latest/core/directives.html |
Fixed it |
Other changes: * Seed draws * Give more succinct tittle to last section * Fix directives
c6d97c1
to
d34dff1
Compare
I thought it would be useful to expand the dimensionality notebook. It might be a bit too long detailed right now, but I is is probably is easier to discuss from more -> less than the other way around.
I also feel it is better to separate the ellipsis into it's own section and that is not yet finished!
Apologies for tagging so many people for review, but this seems to be a critical part of our documentation that can benefit from varied inputs
Rendered at: https://pymc--5746.org.readthedocs.build/en/5746/learn/core_notebooks/dimensionality.html