Skip to content

Fixup dependent density regression #7

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

Merged

Conversation

MarcoGorelli
Copy link
Contributor

@MarcoGorelli MarcoGorelli commented Dec 18, 2020

'Dependent density regression notebook' currently doesn't run (the data doesn't download, and the plot of the posterior predictive throws an error) so here's a PR to fix it up.

Furthermore, the notebook previously read

Since only three mixture components have appreciable posterior expected weight for any data point, we can be fairly certain that truncation did not unduly influence our results.

yet the posterior plot only showed two mixture components having appreciable posterior expected weight for any data point. With the current re-run, it looks right

@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@MarcoGorelli MarcoGorelli force-pushed the fixup-dependent-density-regression branch from f987090 to a4bbf5d Compare December 18, 2020 14:22
@AlexAndorra
Copy link
Collaborator

Is this ready for review?

@MarcoGorelli
Copy link
Contributor Author

MarcoGorelli commented Dec 19, 2020

Sure!

EDIT

Actually, maybe a graphviz graph is helpful here

@MarcoGorelli MarcoGorelli force-pushed the fixup-dependent-density-regression branch from 7cbf7aa to 6a2e2d0 Compare December 19, 2020 12:06
@MarcoGorelli MarcoGorelli force-pushed the fixup-dependent-density-regression branch from 6a2e2d0 to 2a580a9 Compare December 19, 2020 12:08
@MarcoGorelli
Copy link
Contributor Author

@AlexAndorra ready now, thanks!

@@ -2,7 +2,16 @@
"cells": [
Copy link
Collaborator

@AlexAndorra AlexAndorra Dec 19, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is fine, but for future reference I think you could do the handling on w directly with xarray (makes it even nicer and easier!): http://xarray.pydata.org/en/stable/computation.html

Reply via ReviewNB

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah, thanks! OK I'll do that next time

Copy link
Collaborator

@AlexAndorra AlexAndorra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks nice, thanks @MarcoGorelli !

@AlexAndorra AlexAndorra merged commit fe4e4e5 into pymc-devs:main Dec 19, 2020
@MarcoGorelli MarcoGorelli deleted the fixup-dependent-density-regression branch December 19, 2020 12:39
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