-
-
Notifications
You must be signed in to change notification settings - Fork 985
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
Predictive and Deterministic tutorial #2852
Predictive and Deterministic tutorial #2852
Conversation
Hi @mtsokol this looks great, thanks for creating a tutorial! (and sorry for my delay in reviewing.) I have only minor comments:
|
@fritzo Thanks for a review!
Without
Here's a notebook with a full reproduction: Is it a bug or my mistake in SVI part? |
Hmm, are your counts y_ = torch.tensor((y**3)/100000. + 10., dtype=torch.float)
+ y_.round_().clamp_(min=0) |
@fritzo Yes, it was my mistake. Now all working! I pushed changes with all fixes from the review. Also gist with a current version: |
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.
Looks great, thanks for creating this tutorial!
Hi @fritzo!
Sorry for a delay, here's a PR with a
Predictive
anddeterministic
tutorial discussed in #2803.As proposed it's extended with a SVI method (with user defined guide and
AutoGuide
).As you suggested, in the next PR I will add "Advanced Usage" section with
poutine
routines instead ofPredictive
class for further comparison.Here are links to the notebook from the PR:
https://gist.github.com/mtsokol/fe00f78bb0b925f986d241622c2ec019
https://nbviewer.jupyter.org/gist/mtsokol/fe00f78bb0b925f986d241622c2ec019
What should I improve/modify?
My questions:
Although
validate_args=False
inGammaPoisson
fixed it, actual values, which I was inspecting in a debugger, seemed withinGammaPoisson
s support.Delta
this way or is it wrong?Thank you for your help!
view jupyter notebook