-
-
Notifications
You must be signed in to change notification settings - Fork 253
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
update hierarchical partial pooling notebook #219
Conversation
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
View / edit / reply to this conversation on ReviewNB chiral-carbon commented on 2021-09-01T07:17:15Z thanks, looks good! do add |
does the notebook run without changes with both v3 and v4? |
yes
|
View / edit / reply to this conversation on ReviewNB MarcoGorelli commented on 2021-09-16T20:07:03Z
player_names = data['FirstName'] + ' ' + data['LastName']
Just for an example: In [2]: import pandas as pd michaelosthege commented on 2021-10-08T13:51:03Z Don't know if it renders well, but a mjhajharia commented on 2021-11-21T00:13:51Z thanks @michaelosthege it came out nice |
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.
@mjhajharia can you rerun it with v3 for now still and add the post directive and use bibtex references? link to updated style guide: https://github.com/pymc-devs/pymc3/wiki/PyMC3-Jupyter-Notebook-Style-Guide |
56eaec5
to
00bd4e5
Compare
re executed everything with v3. the only changes were replacing aesara.tensor with theano.tensor |
Don't know if it renders well, but a View entire conversation on ReviewNB |
View / edit / reply to this conversation on ReviewNB michaelosthege commented on 2021-10-08T13:53:05Z Line #2. trace = pm.sample(2000, tune=2000, chains=2, target_accept=0.95, return_inferencedata=True) Didn't we decide to call it OriolAbril commented on 2021-10-08T14:04:11Z I think we haven't decided anything yet, the issue is open https://github.com/pymc-devs/pymc/issues/4821 and nothing has been aded to the style guide yet. And it's also unclear if we should enforce those names or offer them as suggestions in case author is not opinionated about naming |
View / edit / reply to this conversation on ReviewNB michaelosthege commented on 2021-10-08T13:53:06Z The names are all in braces. Did they end up as length-1 lists? Maybe doublecheck if OriolAbril commented on 2021-10-08T14:08:41Z I was probably the one to do it but I am not sure why. This is the default style for plot_forest, see https://arviz-devs.github.io/arviz/api/generated/arviz.plot_forest.html also for example. The variable name is only shown once, and the coord values which are what differs are written in all cases, but using the same "format". I guess this allows to distinguish
mjhajharia commented on 2021-11-21T00:16:47Z the actual type is correct, |
View / edit / reply to this conversation on ReviewNB OriolAbril commented on 2021-10-08T14:00:33Z post directive should go in the first cell but under the title. I don't really understand why, but adding this here doesn't work. i.e. there is no hierarchical model tag in https://pymc-examples--219.org.readthedocs.build/en/219/blog/tag.html nor the notebook appears listed in https://pymc-examples--219.org.readthedocs.build/en/219/blog/tag/pymc3model.html.
also cc @martinacantaro, tags page says "hierarchical model" and "linear model" but tags currently in use are "hierarchical" and "linear model", not sure what to do, change hierarchical and add model? leave as is? Once decided on something we do need to enforce it so tags are actually meaningful |
View / edit / reply to this conversation on ReviewNB OriolAbril commented on 2021-10-08T14:00:34Z the text with |
View / edit / reply to this conversation on ReviewNB OriolAbril commented on 2021-10-08T14:00:35Z can you also add dims to |
I think we haven't decided anything yet, the issue is open https://github.com/pymc-devs/pymc/issues/4821 and nothing has been aded to the style guide yet. And it's also unclear if we should enforce those names or offer them as suggestions in case author is not opinionated about naming View entire conversation on ReviewNB |
I was probably the one to do it but I am not sure why. This is the default style for plot_forest, see https://arviz-devs.github.io/arviz/api/generated/arviz.plot_forest.html also for example. The variable name is only shown once, and the coord values which are what differs are written in all cases, but using the same "format". I guess this allows to distinguish
View entire conversation on 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.
marking as request changes for the post
directive thing, the rest of the comments are minor. Once the post directive is right and tags are working consider this approved even if I don't review again
thanks @michaelosthege it came out nice View entire conversation on ReviewNB |
the actual type is correct, View entire conversation on ReviewNB |
btw we could maybe add a test for references.bib syntax errors as well, so it gets fixed in pre-commit or something |
checked the render, everything worked out, I did the requested changes but because of rebasing git doesn't recognise them, can someone approve and merge? |
adds dims and coords to use plot_forest without yticklabels, @OriolAbril since the arviz label thing is WIP from what i inferred this seems to be an ok way?
changed numpy random generator from legacy to default_rng() (the new standard one)
also, there wasn't a lot to update in this notebook, it was pretty short, if there's things i'm missing let me know!