diff --git a/src/inference/Inference.jl b/src/inference/Inference.jl index 317812baf..73f190dcc 100644 --- a/src/inference/Inference.jl +++ b/src/inference/Inference.jl @@ -178,21 +178,6 @@ function AbstractMCMC.sample( return AbstractMCMC.sample(rng, model, Sampler(alg, model), N; kwargs...) end -function AbstractMCMC.sample( - rng::AbstractRNG, - model::AbstractModel, - alg::ExternalSampler, - N::Integer; - kwargs... -) - # Default adaption settings for external samplers - default_n_adapts = min(div(N, 10), 1_000) - kwargs[:n_adapts] = get(kwargs, :n_adapts, default_n_adapts) - kwargs[:discard_initial] = get(kwargs, :discard_initial, default_n_adapts) - - return AbstractMCMC.sample(rng, model, Sampler(alg, model), N + default_n_adapts; kwargs...) -end - function AbstractMCMC.sample( rng::AbstractRNG, model::AbstractModel, @@ -254,24 +239,6 @@ function AbstractMCMC.sample( kwargs...) end -function AbstractMCMC.sample( - rng::AbstractRNG, - model::AbstractModel, - alg::ExternalSampler, - ensemble::AbstractMCMC.AbstractMCMCEnsemble, - N::Integer, - n_chains::Integer; - kwargs... -) - # Default adaption settings for external samplers - default_n_adapts = min(div(N, 10), 1_000) - kwargs[:n_adapts] = get(kwargs, :n_adapts, default_n_adapts) - kwargs[:discard_initial] = get(kwargs, :discard_initial, default_n_adapts) - - return AbstractMCMC.sample(rng, model, Sampler(alg, model), ensemble, N, n_chains; - kwargs...) -end - function AbstractMCMC.sample( rng::AbstractRNG, model::AbstractModel,