@@ -126,11 +126,11 @@ given `rng` and `init_strategy`.
126
126
instead.
127
127
"""
128
128
function VarInfo (
129
- rng:: Random.AbstractRNG , model:: Model , init_strategy:: AbstractInitStrategy = Prior ()
129
+ rng:: Random.AbstractRNG , model:: Model , init_strategy:: AbstractInitStrategy = PriorInit ()
130
130
)
131
131
return typed_varinfo (rng, model, init_strategy)
132
132
end
133
- function VarInfo (model:: Model , init_strategy:: AbstractInitStrategy = Prior ())
133
+ function VarInfo (model:: Model , init_strategy:: AbstractInitStrategy = PriorInit ())
134
134
return VarInfo (Random. default_rng (), model, init_strategy)
135
135
end
136
136
@@ -196,14 +196,14 @@ Construct a VarInfo object for the given `model`, which has just a single
196
196
# Arguments
197
197
- `rng::Random.AbstractRNG`: The random number generator to use during model evaluation
198
198
- `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 ()`.
200
200
"""
201
201
function untyped_varinfo (
202
- rng:: Random.AbstractRNG , model:: Model , init_strategy:: AbstractInitStrategy = Prior ()
202
+ rng:: Random.AbstractRNG , model:: Model , init_strategy:: AbstractInitStrategy = PriorInit ()
203
203
)
204
204
return last (init!! (rng, model, VarInfo (Metadata ()), init_strategy))
205
205
end
206
- function untyped_varinfo (model:: Model , init_strategy:: AbstractInitStrategy = Prior ())
206
+ function untyped_varinfo (model:: Model , init_strategy:: AbstractInitStrategy = PriorInit ())
207
207
return untyped_varinfo (Random. default_rng (), model, init_strategy)
208
208
end
209
209
@@ -275,14 +275,14 @@ Return a VarInfo object for the given `model`, which has a NamedTuple of
275
275
# Arguments
276
276
- `rng::Random.AbstractRNG`: The random number generator to use during model evaluation
277
277
- `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 ()`.
279
279
"""
280
280
function typed_varinfo (
281
- rng:: Random.AbstractRNG , model:: Model , init_strategy:: AbstractInitStrategy = Prior ()
281
+ rng:: Random.AbstractRNG , model:: Model , init_strategy:: AbstractInitStrategy = PriorInit ()
282
282
)
283
283
return typed_varinfo (untyped_varinfo (rng, model, init_strategy))
284
284
end
285
- function typed_varinfo (model:: Model , init_strategy:: AbstractInitStrategy = Prior ())
285
+ function typed_varinfo (model:: Model , init_strategy:: AbstractInitStrategy = PriorInit ())
286
286
return typed_varinfo (Random. default_rng (), model, init_strategy)
287
287
end
288
288
@@ -295,18 +295,20 @@ Return a VarInfo object for the given `model`, which has just a single
295
295
# Arguments
296
296
- `rng::Random.AbstractRNG`: The random number generator to use during model evaluation
297
297
- `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 ()`.
299
299
"""
300
300
function untyped_vector_varinfo (vi:: UntypedVarInfo )
301
301
md = metadata_to_varnamedvector (vi. metadata)
302
302
return VarInfo (md, deepcopy (vi. accs))
303
303
end
304
304
function untyped_vector_varinfo (
305
- rng:: Random.AbstractRNG , model:: Model , init_strategy:: AbstractInitStrategy = Prior ()
305
+ rng:: Random.AbstractRNG , model:: Model , init_strategy:: AbstractInitStrategy = PriorInit ()
306
306
)
307
307
return untyped_vector_varinfo (untyped_varinfo (rng, model, init_strategy))
308
308
end
309
- function untyped_vector_varinfo (model:: Model , init_strategy:: AbstractInitStrategy = Prior ())
309
+ function untyped_vector_varinfo (
310
+ model:: Model , init_strategy:: AbstractInitStrategy = PriorInit ()
311
+ )
310
312
return untyped_vector_varinfo (Random. default_rng (), model, init_strategy)
311
313
end
312
314
@@ -319,7 +321,7 @@ Return a VarInfo object for the given `model`, which has a NamedTuple of
319
321
# Arguments
320
322
- `rng::Random.AbstractRNG`: The random number generator to use during model evaluation
321
323
- `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 ()`.
323
325
"""
324
326
function typed_vector_varinfo (vi:: NTVarInfo )
325
327
md = map (metadata_to_varnamedvector, vi. metadata)
@@ -331,11 +333,11 @@ function typed_vector_varinfo(vi::UntypedVectorVarInfo)
331
333
return VarInfo (nt, deepcopy (vi. accs))
332
334
end
333
335
function typed_vector_varinfo (
334
- rng:: Random.AbstractRNG , model:: Model , init_strategy:: AbstractInitStrategy = Prior ()
336
+ rng:: Random.AbstractRNG , model:: Model , init_strategy:: AbstractInitStrategy = PriorInit ()
335
337
)
336
338
return typed_vector_varinfo (untyped_vector_varinfo (rng, model, init_strategy))
337
339
end
338
- function typed_vector_varinfo (model:: Model , init_strategy:: AbstractInitStrategy = Prior ())
340
+ function typed_vector_varinfo (model:: Model , init_strategy:: AbstractInitStrategy = PriorInit ())
339
341
return typed_vector_varinfo (Random. default_rng (), model, init_strategy)
340
342
end
341
343
0 commit comments