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

starting point for the AdvancedMH.RWMH #104

Closed
zhen0z opened this issue Oct 23, 2024 · 4 comments
Closed

starting point for the AdvancedMH.RWMH #104

zhen0z opened this issue Oct 23, 2024 · 4 comments

Comments

@zhen0z
Copy link

zhen0z commented Oct 23, 2024

Hi,

I'd like to give the AdvancedMH.RWMH a starting point, and then random walk to find the solution, something like this:

initial_values = [2.0, 5.0, 3.5, 7.5, 1.0]
rwmh = AdvancedMH.RWMH(5)
external_sampler = externalsampler(rwmh)
chain = sample(model, external_sampler, MCMCDistributed(), 1, 1, initial=initial_values)

is it possible to achieve this? Thanks.

@torfjelde
Copy link
Member

Yep! You can do this with the initial_params argument to sample:) So just do initial_params instead of initial and you should be good 👍

@zhen0z
Copy link
Author

zhen0z commented Dec 4, 2024 via email

@torfjelde
Copy link
Member

Is it okay if we close the issue then?:)

@zhen0z
Copy link
Author

zhen0z commented Dec 5, 2024 via email

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