From 64eb0e4b69d853852cee68f97c1ad4438f1d1af2 Mon Sep 17 00:00:00 2001 From: Xianda Sun Date: Tue, 17 Sep 2024 15:47:26 +0100 Subject: [PATCH] fix error --- test/gibbs_example/mh.jl | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/test/gibbs_example/mh.jl b/test/gibbs_example/mh.jl index 45b4661c..06895ca9 100644 --- a/test/gibbs_example/mh.jl +++ b/test/gibbs_example/mh.jl @@ -13,9 +13,7 @@ function AbstractMCMC.logdensity_and_state( logdensity_function, state::MHState; recompute_logp::Bool=true ) if recompute_logp - logp, substate = AbstractMCMC.LogDensityProblems.logdensity( - logdensity_function, state.params - ) + logp = AbstractMCMC.LogDensityProblems.logdensity(logdensity_function, state.params) return logp, MHState(substate.params, logp) else return state.logp, state