-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Fix sample_ppc #2309
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
Fix sample_ppc #2309
Conversation
868a69d to
71f2341
Compare
pymc3/distributions/distribution.py
Outdated
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.
brief doc-string would be helpful.
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.
coming up soon
pymc3/distributions/continuous.py
Outdated
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.
why is that required?
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.
draw_values used to return a list if it was passed more than one value and a single value otherwise. I didn't like that and change it to return always a list. I am playing around with sample_ppc a bit, and there it could be that the list of variable to draw is dynamic, which would make the previous behaviour somewhat strange. But I can change it back if you disagree.
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 see, I don't disagree.
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.
is it effect the speed? Since you commented in #2296 that draw_values might also cause slowdown in random method.
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 so
|
@hvasbath Can you verify that the speed issue is gone with this PR? It runs faster in a simple example I tried. |
|
I am not experienced enough with git to checkout this PR. Can you please post some command lines I would need to follow to try? Thanks! |
|
@hvasbath The pattern is like this: git fetch origin pull/<pr_number>/head:<local_name>
git checkout <local_name>where |
|
Thanks @fonnesbeck! So yeah almost as good as before! Good job @aseyboldt ! |
|
Awesome, thanks for checking @hvasbath and sorry you went down that other rabbit hole. Will wait for the doc string and then merge. |
71f2341 to
627cebd
Compare
|
Awesome, can merge once tests pass. |
|
Awesome that this is merged! It heavily affected SMC initialisation! @twiecki at least it was useful to draw @aseyboldt s attention. So that it is fixed in a much better and cleaner way now! No one can know everything right ;) . Thanks again for fixing @aseyboldt ! |
This should hopefully fix #1824 and #2307.