Skip to content

Commit

Permalink
Change default HMC Metric for HamiltonianMC MCMCProposal to UnitEucli…
Browse files Browse the repository at this point in the history
…deanMetric
  • Loading branch information
Micki-D committed Feb 13, 2025
1 parent 0cb9e9a commit 03971c1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion ext/ahmc_impl/ahmc_sampler_impl.jl
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ function BAT.mcmc_propose!!(mc_state::HMCState)
end

function BAT._accept_reject!(mc_state::HMCState, accepted::Bool, p_accept::Float64, current::Integer, proposed::Integer)
# @unpack samples, proposal = mc_state
samples = mc_state.samples
proposal = mc_state.proposal

Expand Down
2 changes: 1 addition & 1 deletion src/extdefs/ahmc_defs/ahmc_alg.jl
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ $(TYPEDFIELDS)
IT,
TC
} <: MCMCProposal
metric::MT = DiagEuclideanMetric()
metric::MT = UnitEuclideanMetric()
integrator::IT = ext_default(pkgext(Val(:AdvancedHMC)), Val(:DEFAULT_INTEGRATOR))
termination::TC = ext_default(pkgext(Val(:AdvancedHMC)), Val(:DEFAULT_TERMINATION_CRITERION))
end
Expand Down

0 comments on commit 03971c1

Please sign in to comment.