Skip to content

NotImplementedError when predicting with BinomialBayesMixedGLM. #4701

Open

Description

@jpilorget

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!

Activity

  1. kshedden commented on Jun 1, 2018

    @kshedden
    Contributor

    Thanks, we will try to resolve this. This code is new and I suspect there are other missing features.

  2. jpilorget commented on Jun 7, 2018

    @jpilorget
    Author

    @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!

  3. kshedden commented on Jun 7, 2018

    @kshedden
    Contributor

    @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.

  4. josef-pkt commented on Jun 7, 2018

    @josef-pkt
    Member

    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.)

  5. jpilorget commented on Jun 7, 2018

    @jpilorget
    Author
  6. kshedden commented on Jun 7, 2018

    @kshedden
    Contributor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions