You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
NotImplementedError when predicting with BinomialBayesMixedGLM. #4701
Hi! After I used fit_vb() to fit a Binomial Bayes Mixed GLM instead of fit() -as suggested by Josef in issue #4700- I tried to get the fitter values with predict() but got a NotImplementedError again. Is there any way this could be solved?
Again, I'm using the 0.9.0 version.
Thanks!
@kshedden Hey, do you think I can be of any help implementing any of the missing functions? I am no expert in this but I have some knowledge that could be useful. I'm quite interested in making available to the public the AIC and BIC as evaluation metrics of the models.
Thanks!
AIC and BIC aren't appropriate here, and I don't know of any easily implemented model fit indices that are.
Isn't there a Bayesian equivalent of llf, e.g. the value at the posterior mode or some Kullback-Leibler distance. BIC still has Bayesian in the name.
(I never looked at Bayesian fit statistics directly.)
For Poisson and count models, I have compared the prediction distribution with the observed frequencies as criterion for how well the entire distribution fits, e.g. to check for zero-inflation, in contrast to just looking at mean prediction. Those would be independent of how they are estimated.
(Logit is binary and frequencies are not very informative, but maybe something grouped like Hosmer-Lemeshow would apply also to Bayesian estimation as goodness-of-fit index. I haven't started to write code for that yet.)
The Deviance Information Criterion (DIC) is sort of a generalisation of the
Akaike Information Criterion, using the posterior log-likelihood, that
could be a viable alternative.
2018-06-07 11:00 GMT-03:00 Josef Perktold <[email protected]>:
AIC and BIC aren't appropriate here, and I don't know of any easily
implemented model fit indices that are.
Isn't there a Bayesian equivalent of llf, e.g. the value at the posterior
mode or some Kullback-Leibler distance. BIC still has Bayesian in the name.
(I never looked at Bayesian fit statistics directly.)
For Poisson and count models, I have compared the prediction distribution
with the observed frequencies as criterion for how well the entire
distribution fits, e.g. to check for zero-inflation, in contrast to just
looking at mean prediction. Those would be independent of how they are
estimated.
(Logit is binary and frequencies are not very informative, but maybe
something grouped like Hosmer-Lemeshow would apply also to Bayesian
estimation as goodness-of-fit index. I haven't started to write code for
that yet.)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#4701 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AT8A28fg5pQzTjuLvM7Kg6tq861dCzRQks5t6THjgaJpZM4UXFJF>
.
The DIC involves integrating the log-likelihood over the posterior. Here we have two Gaussian approximations to the posterior (Laplace and mean field VB). It would be possible to perform the integration to get the DIC numerically. But it would take some careful work to do this. I'm not sure how the resulting DIC would perform as it would only be an approximation.
Activity
kshedden commentedon Jun 1, 2018
Thanks, we will try to resolve this. This code is new and I suspect there are other missing features.
jpilorget commentedon Jun 7, 2018
@kshedden Hey, do you think I can be of any help implementing any of the missing functions? I am no expert in this but I have some knowledge that could be useful. I'm quite interested in making available to the public the AIC and BIC as evaluation metrics of the models.
Thanks!
kshedden commentedon Jun 7, 2018
@jpilorget help is always welcome. The missing predict method and unintuitive fit naming should be resolved by #4702, which has not been merged yet.
AIC and BIC aren't appropriate here, and I don't know of any easily implemented model fit indices that are.
Notebooks containing examples, documentation review, simulation studies and other performance assessments are one way to help out here.
josef-pkt commentedon Jun 7, 2018
Isn't there a Bayesian equivalent of llf, e.g. the value at the posterior mode or some Kullback-Leibler distance. BIC still has Bayesian in the name.
(I never looked at Bayesian fit statistics directly.)
For Poisson and count models, I have compared the prediction distribution with the observed frequencies as criterion for how well the entire distribution fits, e.g. to check for zero-inflation, in contrast to just looking at mean prediction. Those would be independent of how they are estimated.
(Logit is binary and frequencies are not very informative, but maybe something grouped like Hosmer-Lemeshow would apply also to Bayesian estimation as goodness-of-fit index. I haven't started to write code for that yet.)
jpilorget commentedon Jun 7, 2018
kshedden commentedon Jun 7, 2018
The DIC involves integrating the log-likelihood over the posterior. Here we have two Gaussian approximations to the posterior (Laplace and mean field VB). It would be possible to perform the integration to get the DIC numerically. But it would take some careful work to do this. I'm not sure how the resulting DIC would perform as it would only be an approximation.