Skip to content

Conversation

ccaprani
Copy link
Contributor

Did this as an exercise for myself as I am learning. Noticed nobody had submitted Chap 16 yet, so this is the first part (Section 16.1). Hopefully followed style guide ok, but please do make suggestions as necessary.

@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@review-notebook-app
Copy link

View / edit / reply to this conversation on ReviewNB

aloctavodia commented on 2020-11-12T11:21:11Z
----------------------------------------------------------------

move import to the first cell


@review-notebook-app
Copy link

View / edit / reply to this conversation on ReviewNB

aloctavodia commented on 2020-11-12T11:21:11Z
----------------------------------------------------------------

you can use np.pi


@review-notebook-app
Copy link

View / edit / reply to this conversation on ReviewNB

aloctavodia commented on 2020-11-12T11:21:12Z
----------------------------------------------------------------

What about using https://arviz-devs.github.io/arviz/api/generated/arviz.plot_pair.html


@review-notebook-app
Copy link

View / edit / reply to this conversation on ReviewNB

aloctavodia commented on 2020-11-12T11:25:05Z
----------------------------------------------------------------

also you need to run black. You can run isort and black via the nbqa package


@ccaprani
Copy link
Contributor Author

Thanks for the review @aloctavodia ! All done (except was already using az.plot_pair in that figure that matches the corresponding one in the book).

@aloctavodia
Copy link
Member

Great! sorry for not being clear I mean to use az.plot_pair with the marginals=True argument. Not sure how easy will be to add the correlation as a subplot, maybe it will work!

@ccaprani
Copy link
Contributor Author

Thanks @aloctavodia ! Implemented the Arviz native and retained the 'book' one too. Just added the correlation as text to the main subplot.

@aloctavodia aloctavodia merged commit 0b7c378 into pymc-devs:master Dec 8, 2020
@ccaprani ccaprani deleted the rethink2-chap_16 branch December 9, 2020 13:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants