Skip to content
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

Updates to binning case study to work with PyMC v4 #366

Merged
merged 10 commits into from
Jun 9, 2022

Conversation

cuchoi
Copy link
Member

@cuchoi cuchoi commented Jun 4, 2022

Issue #270

Helpful links

@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@twiecki
Copy link
Member

twiecki commented Jun 4, 2022

Looks like some myst problem? Make sure your code is black and then try to remove the myst file so that it will get regenerated during pre-commit.

@review-notebook-app
Copy link

review-notebook-app bot commented Jun 4, 2022

View / edit / reply to this conversation on ReviewNB

cfonnesbeck commented on 2022-06-04T14:41:04Z
----------------------------------------------------------------

Please remove the pymc objects from the tags, and just keep the first three that are descriptive of the notebook.


cuchoi commented on 2022-06-04T15:13:13Z
----------------------------------------------------------------

Done

@review-notebook-app
Copy link

review-notebook-app bot commented Jun 4, 2022

View / edit / reply to this conversation on ReviewNB

cfonnesbeck commented on 2022-06-04T14:41:05Z
----------------------------------------------------------------

Since there is a watermark the print statement can be removed


cuchoi commented on 2022-06-04T15:13:20Z
----------------------------------------------------------------

Done

@review-notebook-app
Copy link

review-notebook-app bot commented Jun 4, 2022

View / edit / reply to this conversation on ReviewNB

cfonnesbeck commented on 2022-06-04T14:41:05Z
----------------------------------------------------------------

If you'd like to hide these user warnings, you could add the following to the import cell:

import warnings
warnings.filterwarnings(
    action='ignore',
    category=UserWarning
)

cuchoi commented on 2022-06-04T15:13:28Z
----------------------------------------------------------------

Done

Copy link
Member Author

cuchoi commented Jun 4, 2022

Done


View entire conversation on ReviewNB

2 similar comments
Copy link
Member Author

cuchoi commented Jun 4, 2022

Done


View entire conversation on ReviewNB

Copy link
Member Author

cuchoi commented Jun 4, 2022

Done


View entire conversation on ReviewNB

@review-notebook-app
Copy link

review-notebook-app bot commented Jun 4, 2022

View / edit / reply to this conversation on ReviewNB

twiecki commented on 2022-06-04T16:56:15Z
----------------------------------------------------------------

Can you instead import aesara.tensor as at and use pm.math functions where available (e.g. for exp())?


cuchoi commented on 2022-06-04T21:55:08Z
----------------------------------------------------------------

Updated the import for the sample code. Also updated at.concatenate to pm.math.concatenate and at.exp to pm.math.exp. Didn't find a pm.math equivalent for at.extra_ops.diff.

@review-notebook-app
Copy link

review-notebook-app bot commented Jun 4, 2022

View / edit / reply to this conversation on ReviewNB

OriolAbril commented on 2022-06-04T19:27:10Z
----------------------------------------------------------------

I'd just remove this. The output is no longer a dict but InferenceData and in general I think examples should focus on using it, not explaining what it is (with the exception of some notebooks we might want to dedicate to this).


cuchoi commented on 2022-06-04T21:56:32Z
----------------------------------------------------------------

Updated the text to remove the explanation.

@review-notebook-app
Copy link

review-notebook-app bot commented Jun 4, 2022

View / edit / reply to this conversation on ReviewNB

OriolAbril commented on 2022-06-04T19:27:11Z
----------------------------------------------------------------

aesara is imported and already appears on the watermark, so it is not necessary to pass it manually to the watermark call to have it included. aeppl should be added there though


cuchoi commented on 2022-06-04T21:56:02Z
----------------------------------------------------------------

Done

Copy link
Member Author

cuchoi commented Jun 4, 2022

Updated the import for the sample code. Also updated at.concatenate to pm.math.concatenate and at.exp to pm.math.exp. Didn't find a pm.math equivalent for at.extra_ops.diff.


View entire conversation on ReviewNB

Copy link
Member Author

cuchoi commented Jun 4, 2022

Done


View entire conversation on ReviewNB

Copy link
Member Author

cuchoi commented Jun 4, 2022

Updated the text to remove the explanation.


View entire conversation on ReviewNB

@twiecki twiecki merged commit 57d3f19 into pymc-devs:main Jun 9, 2022
@twiecki
Copy link
Member

twiecki commented Jun 9, 2022

Thanks @cuchoi!

@cuchoi cuchoi mentioned this pull request Jun 17, 2022
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