Skip to content

Commit

Permalink
Merge pull request SciML#788 from sathvikbhagavan/sb/remove_duplicate
Browse files Browse the repository at this point in the history
Remove duplicated methods in BPINN as it causes methods overwrite
  • Loading branch information
ChrisRackauckas authored Jan 23, 2024
2 parents fb1fbfa + dedf1aa commit d8750ac
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions src/advancedHMC_MCMC.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit d8750ac

Please sign in to comment.