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

Pass parameters to llhood function? #9

Closed
BanjoCam opened this issue Jul 27, 2022 · 0 comments
Closed

Pass parameters to llhood function? #9

BanjoCam opened this issue Jul 27, 2022 · 0 comments

Comments

@BanjoCam
Copy link

Good day,

Thank you so much for making this library.

I am relatively new to Julia in general and trying to port over an MCMC tool I wrote in python with emcee. I have successfully gotten it working with your library (and it's loads faster - which was my purpose for porting, so quite happy!)

I need to pass additional arguments to my llhood function outside of the vector with the parameters. (I have a bunch of details that are required to run the function, that do not change during sampling.) In emcee this is trivial (you can pass an args argument, ie:

sampler = emcee.EnsembleSampler(nwalkers, ndim, logpost, args=[case]) 

) but I do not see how to do that in this library. (For testing, I just hard coded the details in the function...)

I tried modifying the sample function to pass more to the rpmap call, I made a bit of progress but it was too complicated for me.

Is there an obvious way I'm missing here? Or any other suggestions?

Thank you!

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

2 participants