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

Initial AbstractMCMC.step should not sample #366

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

torfjelde
Copy link
Member

Generally speaking, the first AbstractMCMC.step should just construct the initial transition and state, not actually perform any sampling. If it performs sampling in the initial step, it becomes increasingly difficult to test that arguments such as initial_params and initial_state are properly respected (since we can't just compare the resulting initial_params with the ones produced by the first step). Moreover, it can hide certain behaviors from the user since a traceplot will show the "starting value" as something different than what they set.

This PR just makes the initial AbstractMCMC.step do exactly this.

Should be a quick merge. @devmotion @yebai @xukai92

src/abstractmcmc.jl Outdated Show resolved Hide resolved
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
yebai
yebai previously approved these changes Apr 24, 2024
Copy link
Member

@yebai yebai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

devmotion
devmotion previously approved these changes Apr 24, 2024
@torfjelde torfjelde dismissed stale reviews from devmotion and yebai via 50b56ab April 25, 2024 14:17
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

Successfully merging this pull request may close these issues.

None yet

3 participants