Skip to content

Commit e95495a

Browse files
committed
Provide default init_strategy for all samplers
1 parent b26f10e commit e95495a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sampler.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ end
5151
Define the initialisation strategy used for generating initial values when
5252
sampling with `sampler`. Defaults to `InitFromPrior()`, but can be overridden.
5353
"""
54-
init_strategy(::Sampler) = InitFromPrior()
54+
init_strategy(::AbstractSampler) = InitFromPrior()
5555

5656
function AbstractMCMC.sample(
5757
rng::Random.AbstractRNG,

0 commit comments

Comments
 (0)