@@ -126,11 +126,11 @@ given `rng` and `init_strategy`.
126126 instead.
127127"""
128128function VarInfo (
129- rng:: Random.AbstractRNG , model:: Model , init_strategy:: AbstractInitStrategy = Prior ()
129+ rng:: Random.AbstractRNG , model:: Model , init_strategy:: AbstractInitStrategy = PriorInit ()
130130)
131131 return typed_varinfo (rng, model, init_strategy)
132132end
133- function VarInfo (model:: Model , init_strategy:: AbstractInitStrategy = Prior ())
133+ function VarInfo (model:: Model , init_strategy:: AbstractInitStrategy = PriorInit ())
134134 return VarInfo (Random. default_rng (), model, init_strategy)
135135end
136136
@@ -196,14 +196,14 @@ Construct a VarInfo object for the given `model`, which has just a single
196196# Arguments
197197- `rng::Random.AbstractRNG`: The random number generator to use during model evaluation
198198- `model::Model`: The model for which to create the varinfo object
199- - `init_strategy::AbstractInitStrategy`: How the values are to be initialised. Defaults to `Prior ()`.
199+ - `init_strategy::AbstractInitStrategy`: How the values are to be initialised. Defaults to `PriorInit ()`.
200200"""
201201function untyped_varinfo (
202- rng:: Random.AbstractRNG , model:: Model , init_strategy:: AbstractInitStrategy = Prior ()
202+ rng:: Random.AbstractRNG , model:: Model , init_strategy:: AbstractInitStrategy = PriorInit ()
203203)
204204 return last (init!! (rng, model, VarInfo (Metadata ()), init_strategy))
205205end
206- function untyped_varinfo (model:: Model , init_strategy:: AbstractInitStrategy = Prior ())
206+ function untyped_varinfo (model:: Model , init_strategy:: AbstractInitStrategy = PriorInit ())
207207 return untyped_varinfo (Random. default_rng (), model, init_strategy)
208208end
209209
@@ -275,14 +275,14 @@ Return a VarInfo object for the given `model`, which has a NamedTuple of
275275# Arguments
276276- `rng::Random.AbstractRNG`: The random number generator to use during model evaluation
277277- `model::Model`: The model for which to create the varinfo object
278- - `init_strategy::AbstractInitStrategy`: How the values are to be initialised. Defaults to `Prior ()`.
278+ - `init_strategy::AbstractInitStrategy`: How the values are to be initialised. Defaults to `PriorInit ()`.
279279"""
280280function typed_varinfo (
281- rng:: Random.AbstractRNG , model:: Model , init_strategy:: AbstractInitStrategy = Prior ()
281+ rng:: Random.AbstractRNG , model:: Model , init_strategy:: AbstractInitStrategy = PriorInit ()
282282)
283283 return typed_varinfo (untyped_varinfo (rng, model, init_strategy))
284284end
285- function typed_varinfo (model:: Model , init_strategy:: AbstractInitStrategy = Prior ())
285+ function typed_varinfo (model:: Model , init_strategy:: AbstractInitStrategy = PriorInit ())
286286 return typed_varinfo (Random. default_rng (), model, init_strategy)
287287end
288288
@@ -295,18 +295,20 @@ Return a VarInfo object for the given `model`, which has just a single
295295# Arguments
296296- `rng::Random.AbstractRNG`: The random number generator to use during model evaluation
297297- `model::Model`: The model for which to create the varinfo object
298- - `init_strategy::AbstractInitStrategy`: How the values are to be initialised. Defaults to `Prior ()`.
298+ - `init_strategy::AbstractInitStrategy`: How the values are to be initialised. Defaults to `PriorInit ()`.
299299"""
300300function untyped_vector_varinfo (vi:: UntypedVarInfo )
301301 md = metadata_to_varnamedvector (vi. metadata)
302302 return VarInfo (md, deepcopy (vi. accs))
303303end
304304function untyped_vector_varinfo (
305- rng:: Random.AbstractRNG , model:: Model , init_strategy:: AbstractInitStrategy = Prior ()
305+ rng:: Random.AbstractRNG , model:: Model , init_strategy:: AbstractInitStrategy = PriorInit ()
306306)
307307 return untyped_vector_varinfo (untyped_varinfo (rng, model, init_strategy))
308308end
309- function untyped_vector_varinfo (model:: Model , init_strategy:: AbstractInitStrategy = Prior ())
309+ function untyped_vector_varinfo (
310+ model:: Model , init_strategy:: AbstractInitStrategy = PriorInit ()
311+ )
310312 return untyped_vector_varinfo (Random. default_rng (), model, init_strategy)
311313end
312314
@@ -319,7 +321,7 @@ Return a VarInfo object for the given `model`, which has a NamedTuple of
319321# Arguments
320322- `rng::Random.AbstractRNG`: The random number generator to use during model evaluation
321323- `model::Model`: The model for which to create the varinfo object
322- - `init_strategy::AbstractInitStrategy`: How the values are to be initialised. Defaults to `Prior ()`.
324+ - `init_strategy::AbstractInitStrategy`: How the values are to be initialised. Defaults to `PriorInit ()`.
323325"""
324326function typed_vector_varinfo (vi:: NTVarInfo )
325327 md = map (metadata_to_varnamedvector, vi. metadata)
@@ -331,11 +333,11 @@ function typed_vector_varinfo(vi::UntypedVectorVarInfo)
331333 return VarInfo (nt, deepcopy (vi. accs))
332334end
333335function typed_vector_varinfo (
334- rng:: Random.AbstractRNG , model:: Model , init_strategy:: AbstractInitStrategy = Prior ()
336+ rng:: Random.AbstractRNG , model:: Model , init_strategy:: AbstractInitStrategy = PriorInit ()
335337)
336338 return typed_vector_varinfo (untyped_vector_varinfo (rng, model, init_strategy))
337339end
338- function typed_vector_varinfo (model:: Model , init_strategy:: AbstractInitStrategy = Prior ())
340+ function typed_vector_varinfo (model:: Model , init_strategy:: AbstractInitStrategy = PriorInit ())
339341 return typed_vector_varinfo (Random. default_rng (), model, init_strategy)
340342end
341343
0 commit comments