-
Notifications
You must be signed in to change notification settings - Fork 75
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
FullSubnetLaplace.sample()
doesn't use generator
#213
Comments
Hi Steve, thanks for catching this. I agree, the fix is super simple as you mentioned. Probably could also be as simple as reusing I have to admit that we don't pay too much attention to the In any case, happy to accept your PR, as always! |
I put together a fix, please see #216.
I have some questions regarding this method but this is off-topic for this particular issue here, so I'll open a new one. |
Hi
I was doing some reproducibility tests for
pred_type="nn"
, so testingSomeLaplaceClass._nn_predictive_samples()
->SomeLaplaceClass.sample()
, using the currentmain
(508843d).I found that
FullSubnetLaplace.sample()
doesn't use the passedgenerator
(ruff check --select ARG laplace/subnetlaplace.py
also catches this). The reason is probably that the usedtorch.distributions.MultivariateNormal
doesn't offer an API to pass in agenerator
.I guess it would not be too difficult to rewrite this in the way other sample methods do things -- generate and re-use a set of standard Normal samples (because of #91) and go from there.
Thanks.
The text was updated successfully, but these errors were encountered: