From dedf1aacb9138b5bbd8d7ce9c6de498c2a0776ab Mon Sep 17 00:00:00 2001 From: Sathvik Bhagavan Date: Tue, 23 Jan 2024 10:50:37 +0530 Subject: [PATCH] refactor: remove duplicated methods as it causes methods overwrite --- src/advancedHMC_MCMC.jl | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/src/advancedHMC_MCMC.jl b/src/advancedHMC_MCMC.jl index 1a2c47de0d..1efbadd4bd 100644 --- a/src/advancedHMC_MCMC.jl +++ b/src/advancedHMC_MCMC.jl @@ -351,27 +351,6 @@ function kernelchoice(Kernel, MCMCkwargs) end end -function integratorchoice(Integratorkwargs, initial_ϵ) - Integrator = Integratorkwargs[:Integrator] - if Integrator == JitteredLeapfrog - jitter_rate = Integratorkwargs[:jitter_rate] - Integrator(initial_ϵ, jitter_rate) - elseif Integrator == TemperedLeapfrog - tempering_rate = Integratorkwargs[:tempering_rate] - Integrator(initial_ϵ, tempering_rate) - else - Integrator(initial_ϵ) - end -end - -function adaptorchoice(Adaptor, mma, ssa) - if Adaptor != AdvancedHMC.NoAdaptation() - Adaptor(mma, ssa) - else - AdvancedHMC.NoAdaptation() - end -end - """ ```julia ahmc_bayesian_pinn_ode(prob, chain; strategy = GridTraining,