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

Fix step #358

Closed
wants to merge 4 commits into from
Closed

Fix step #358

wants to merge 4 commits into from

Conversation

JaimeRZP
Copy link
Member

@JaimeRZP JaimeRZP commented Nov 3, 2023

Answer to #350

@JaimeRZP JaimeRZP closed this Nov 3, 2023
@JaimeRZP JaimeRZP deleted the fix_step branch November 3, 2023 09:15
@@ -141,6 +141,7 @@ function AbstractMCMC.step(
model::AbstractMCMC.LogDensityModel,
spl::AbstractHMCSampler,
state::HMCState;
n_adapts::Int=0,
Copy link
Contributor

Choose a reason for hiding this comment

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

[JuliaFormatter] reported by reviewdog 🐶

Suggested change
n_adapts::Int=0,
n_adapts::Int = 0,

θs[j], stats[j] = t.z.θ, tstat
if keep_gradients
sample = [t.z.θ; t.z.ℓπ]
else
Copy link
Contributor

Choose a reason for hiding this comment

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

[JuliaFormatter] reported by reviewdog 🐶

Suggested change
else
else

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.

1 participant