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

Errors when using any explorer besides SliceSampler() on a turing model #204

Closed
Raoul-Kima opened this issue Feb 14, 2024 · 3 comments
Closed

Comments

@Raoul-Kima
Copy link

When I try to use any explorer other then SliceSampler I get an error saying:
KeyError: key :singleton_variable => OnlineStatsBase.Variance not found

Here's a stacktrace from AutoMALA:
image

Test model was:
image

Explorers tested were: AAPS, MALA, AutoMALA.

Here's the environment and reprex:
alternativeSamplersTestReprex.zip

@alexandrebouchard
Copy link
Member

Yes, the Pigeons-Turing integration currently support only the SliceSampler. We hope to relax this restriction soon. Note however that the slice sampler is more general since it handles both discrete and continuous variables. If performance is critical, for now it may be better to code the target in Stan, or as a Julia function as a workaround. For these types of target, AAPS, MALA, AutoMALA do work.

@Raoul-Kima
Copy link
Author

Raoul-Kima commented Feb 14, 2024

Thanks for the clarification!
Shall I close this issue then, or leave it open for others so they can see it's known and being worked on? (I'm asking because it sounds a bit like you had a separate issue tracker somewhere else where this is already being tracked)

@miguelbiron
Copy link
Collaborator

No worries! This issue is already tracked by #160 so feel free to close this one.

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

No branches or pull requests

3 participants