@@ -133,11 +133,13 @@ given `rng` and `init_strategy`.
133133    instead. 
134134""" 
135135function  VarInfo (
136-     rng:: Random.AbstractRNG , model:: Model , init_strategy:: AbstractInitStrategy = PriorInit ()
136+     rng:: Random.AbstractRNG ,
137+     model:: Model ,
138+     init_strategy:: AbstractInitStrategy = InitFromPrior (),
137139)
138140    return  typed_varinfo (rng, model, init_strategy)
139141end 
140- function  VarInfo (model:: Model , init_strategy:: AbstractInitStrategy = PriorInit ())
142+ function  VarInfo (model:: Model , init_strategy:: AbstractInitStrategy = InitFromPrior ())
141143    return  VarInfo (Random. default_rng (), model, init_strategy)
142144end 
143145
@@ -207,14 +209,16 @@ Construct a VarInfo object for the given `model`, which has just a single
207209# Arguments 
208210- `rng::Random.AbstractRNG`: The random number generator to use during model evaluation 
209211- `model::Model`: The model for which to create the varinfo object 
210- - `init_strategy::AbstractInitStrategy`: How the values are to be initialised. Defaults to `PriorInit ()`. 
212+ - `init_strategy::AbstractInitStrategy`: How the values are to be initialised. Defaults to `InitFromPrior ()`. 
211213""" 
212214function  untyped_varinfo (
213-     rng:: Random.AbstractRNG , model:: Model , init_strategy:: AbstractInitStrategy = PriorInit ()
215+     rng:: Random.AbstractRNG ,
216+     model:: Model ,
217+     init_strategy:: AbstractInitStrategy = InitFromPrior (),
214218)
215219    return  last (init!! (rng, model, VarInfo (Metadata ()), init_strategy))
216220end 
217- function  untyped_varinfo (model:: Model , init_strategy:: AbstractInitStrategy = PriorInit ())
221+ function  untyped_varinfo (model:: Model , init_strategy:: AbstractInitStrategy = InitFromPrior ())
218222    return  untyped_varinfo (Random. default_rng (), model, init_strategy)
219223end 
220224
@@ -282,14 +286,16 @@ Return a VarInfo object for the given `model`, which has a NamedTuple of
282286# Arguments 
283287- `rng::Random.AbstractRNG`: The random number generator to use during model evaluation 
284288- `model::Model`: The model for which to create the varinfo object 
285- - `init_strategy::AbstractInitStrategy`: How the values are to be initialised. Defaults to `PriorInit ()`. 
289+ - `init_strategy::AbstractInitStrategy`: How the values are to be initialised. Defaults to `InitFromPrior ()`. 
286290""" 
287291function  typed_varinfo (
288-     rng:: Random.AbstractRNG , model:: Model , init_strategy:: AbstractInitStrategy = PriorInit ()
292+     rng:: Random.AbstractRNG ,
293+     model:: Model ,
294+     init_strategy:: AbstractInitStrategy = InitFromPrior (),
289295)
290296    return  typed_varinfo (untyped_varinfo (rng, model, init_strategy))
291297end 
292- function  typed_varinfo (model:: Model , init_strategy:: AbstractInitStrategy = PriorInit ())
298+ function  typed_varinfo (model:: Model , init_strategy:: AbstractInitStrategy = InitFromPrior ())
293299    return  typed_varinfo (Random. default_rng (), model, init_strategy)
294300end 
295301
@@ -302,19 +308,21 @@ Return a VarInfo object for the given `model`, which has just a single
302308# Arguments 
303309- `rng::Random.AbstractRNG`: The random number generator to use during model evaluation 
304310- `model::Model`: The model for which to create the varinfo object 
305- - `init_strategy::AbstractInitStrategy`: How the values are to be initialised. Defaults to `PriorInit ()`. 
311+ - `init_strategy::AbstractInitStrategy`: How the values are to be initialised. Defaults to `InitFromPrior ()`. 
306312""" 
307313function  untyped_vector_varinfo (vi:: UntypedVarInfo )
308314    md =  metadata_to_varnamedvector (vi. metadata)
309315    return  VarInfo (md, copy (vi. accs))
310316end 
311317function  untyped_vector_varinfo (
312-     rng:: Random.AbstractRNG , model:: Model , init_strategy:: AbstractInitStrategy = PriorInit ()
318+     rng:: Random.AbstractRNG ,
319+     model:: Model ,
320+     init_strategy:: AbstractInitStrategy = InitFromPrior (),
313321)
314322    return  untyped_vector_varinfo (untyped_varinfo (rng, model, init_strategy))
315323end 
316324function  untyped_vector_varinfo (
317-     model:: Model , init_strategy:: AbstractInitStrategy = PriorInit ()
325+     model:: Model , init_strategy:: AbstractInitStrategy = InitFromPrior ()
318326)
319327    return  untyped_vector_varinfo (Random. default_rng (), model, init_strategy)
320328end 
@@ -328,7 +336,7 @@ Return a VarInfo object for the given `model`, which has a NamedTuple of
328336# Arguments 
329337- `rng::Random.AbstractRNG`: The random number generator to use during model evaluation 
330338- `model::Model`: The model for which to create the varinfo object 
331- - `init_strategy::AbstractInitStrategy`: How the values are to be initialised. Defaults to `PriorInit ()`. 
339+ - `init_strategy::AbstractInitStrategy`: How the values are to be initialised. Defaults to `InitFromPrior ()`. 
332340""" 
333341function  typed_vector_varinfo (vi:: NTVarInfo )
334342    md =  map (metadata_to_varnamedvector, vi. metadata)
@@ -340,11 +348,15 @@ function typed_vector_varinfo(vi::UntypedVectorVarInfo)
340348    return  VarInfo (nt, copy (vi. accs))
341349end 
342350function  typed_vector_varinfo (
343-     rng:: Random.AbstractRNG , model:: Model , init_strategy:: AbstractInitStrategy = PriorInit ()
351+     rng:: Random.AbstractRNG ,
352+     model:: Model ,
353+     init_strategy:: AbstractInitStrategy = InitFromPrior (),
344354)
345355    return  typed_vector_varinfo (untyped_vector_varinfo (rng, model, init_strategy))
346356end 
347- function  typed_vector_varinfo (model:: Model , init_strategy:: AbstractInitStrategy = PriorInit ())
357+ function  typed_vector_varinfo (
358+     model:: Model , init_strategy:: AbstractInitStrategy = InitFromPrior ()
359+ )
348360    return  typed_vector_varinfo (Random. default_rng (), model, init_strategy)
349361end 
350362
0 commit comments