Skip to content
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

Evaluating models in Numpyro. #1875

Open
Claudmj opened this issue Oct 2, 2024 · 2 comments
Open

Evaluating models in Numpyro. #1875

Claudmj opened this issue Oct 2, 2024 · 2 comments
Labels
question Further information is requested

Comments

@Claudmj
Copy link

Claudmj commented Oct 2, 2024

Is there anyway to evaluate mixture models such as the following Sine-skewed sine (bivariate von Mises) mixture ? I tried using the following:

numpyro.infer.util.log_likelihood(model=ss_model, posterior_samples=posterior_samples, data=data[aa], num_data=len(data[aa]), K=K)

But I get an error in the assertion in the sample method for the key. I have tried to get the "observed" model and pass that through but I get the same error about the key.

@fehiepsi
Copy link
Member

fehiepsi commented Oct 4, 2024

Interesting. Could you check which latent variable is missing? I can follow up on https://forum.pyro.ai/ - we use github to track issues and propose new features.

@fehiepsi fehiepsi added the question Further information is requested label Oct 4, 2024
@Claudmj
Copy link
Author

Claudmj commented Oct 5, 2024

May you please do so I'd really like to evaluate the best number of components for this approach.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants