8000 Expose logp for Bayesian models in brainiak · Issue #69 · brainiak/brainiak · GitHub
[go: up one dir, main page]

Skip to content

Expose logp for Bayesian models in brainiak #69

Open

Description

@mshvartsman

SRM and (H)TFA, and Bayesian RSA are all Bayesian models. It would be great if they exposed a method that produces a log-likelihood given some data and parameters. This would make easier a number of things:

  • Bayesian model comparison.
  • Decomposing the model structure from the estimation machinery for better reuse of either/both.

Activity

  1. TuKo commented on Aug 3, 2016

    @TuKo

    @mshvartsman , how would a log-likelihood function would help with model comparison here?
    Can you give an expected usage example?

  2. mihaic commented on Aug 12, 2016

    @mihaic
    Member

    @mshvartsman, can you please reply to Javier?

  3. mshvartsman commented on Aug 12, 2016

    @mshvartsman
    ContributorAuthor

    For Bayesian model comparison I guess we would need marginal likelihood, not likelihood given data and parameters, so maybe this is not as useful on this front.

    For the latter situation I'm imagining something like the following: if I estimate a joint hyperprior over some latent cognitive features of behavioral data and latent factors I could alternate doing MAP estimation on the brain factor model, cognitive features, and the hyper-prior. I would be reusing the factor model likelihood but the rest of the structure would be different.

    I'm hoping to put together a simpler version (using PCA instead of a fancy factor model) as a proof of concept, so if you prefer we can close this and wait on it until I have a concrete thing I want to plug one of these factor models into to reopen.

  4. lcnature commented on Sep 19, 2016

    @lcnature
    Contributor

    This is a good idea as I also have plan to offer a model comparison capacity in Bayesian RSA. The simple way is to give BIC or AIC score. Doing cross-validation can be better. But fit() seems to be reserved for giving back labels for testing data instead of giving log-likelihood. What function name would be good?
    But anyway I prefer to keep this as lower priority for my code as I have a few other things to add first.

  5. added a commit that references this issue on Nov 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0