-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
CategoricalGibbsMetropolis is slower than the older ElemwiseCategoricalStep #1563
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
Comments
That's unfortunate. It's probably related to the Python loop where each element is proposed and accepted individually, rather than all at once like the previous |
It looks like |
I agree with Thomas, it probably has to do with the Python loop. BTW, |
Actually it's probably not just the python loop, but the fact that logp gets evaluated N times for a vector of length N, rather than just once. There's no way around that for Gibbs but it does suggest that we should keep |
I wonder if a @rahuldave Can you just use |
Yes thats what I did. But perhaps the competences ought to currently be changed? Marginalizing, both explicitly and implicitly using the pymc API is part of tomorrows lab :-) |
Good point about changing the default.
…On Apr 14, 2017 3:36 AM, "Rahul Dave" ***@***.***> wrote:
Yes thats what I did. But perhaps the competences ought to currently be
changed? Marginalizing, both explicitly and implicitly using the pymc API
is part of tomorrows lab :-)
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1563 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AApJmGVc2X8lc5-pDQv5VK_6AxPZERbwks5rvs20gaJpZM4K_Cp8>
.
|
See #2037. |
Looking at Austin Rochford's Dirichlet process mixture model which used the older
ElemwiseCategoricalStep
, it looks 20,000 iterations took just over 2 minutes.Comparing to the same example in the docs which uses the newer
CategoricalGibbsMetropolis
, the same number of iterations takes over 14 minutes.Does anyone know why there is such an increase in run time and if there's a way to make it faster? I've just updated my code (with the new step method) with uses the same model but on much larger data sets, and what used to take a few days to run now looks like it might span weeks :(
The text was updated successfully, but these errors were encountered: