-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
fix #2108 #2110
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 #2108 #2110
Conversation
What is wrong with order? Is it the best place for fix? |
@ferrine basically, the problem is that the somehow the bijection.map in approximation class is different than the In the old advi init, it does |
Seems like there's a underlying issue which we should fix instead.
…On Tue, May 2, 2017 at 10:23 PM, Junpeng Lao ***@***.***> wrote:
@ferrine <https://github.com/ferrine> basically, the problem is that the
somehow the bijection.map in approximation class is different than the
model.bijection.map. So in the
https://github.com/pymc-devs/pymc3/blob/master/pymc3/sampling.py#L588-L589,
the cov has a different order compare to start.
As a result, the pm.NUTS get the wrong scaling.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2110 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AApJmHpWUJyxJu5oDxyRLDHCjvAzuZWVks5r15CvgaJpZM4NOkyT>
.
|
@twiecki I agree - something must happen during |
@@ -573,7 +573,15 @@ def init_nuts(init='ADVI', njobs=1, n_init=500000, model=None, | |||
progressbar=progressbar | |||
) # type: pm.MeanField | |||
start = approx.sample(draws=njobs) | |||
cov = approx.cov.eval() |
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.
that's more pretty
stds = mf.gbij.rmap((tt.diag(mf.cov).eval()))
cov = model.dict_to_array(stds)
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.
thanks! I will go with this.
If I understand correctly the posterior cov of advi
is a diagonal matrix right?
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.
Yes
|
Oops, thanks @twiecki |
No description provided.