File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 3
3
4
4
Abstract type representing the possible ways of initialising new values for
5
5
the random variables in a model (e.g., when creating a new VarInfo).
6
+
7
+ Any subtype of `AbstractInitStrategy` must implement the
8
+ [`DynamicPPL.init`](@ref) method.
6
9
"""
7
10
abstract type AbstractInitStrategy end
8
11
@@ -11,8 +14,8 @@ abstract type AbstractInitStrategy end
11
14
12
15
Generate a new value for a random variable with the given distribution.
13
16
14
- !!! warning "Values must be unlinked"
15
- The values returned by `init` are always in the untransformed space, i.e.,
17
+ !!! warning "Return values must be unlinked"
18
+ The values returned by `init` must always be in the untransformed space, i.e.,
16
19
they must be within the support of the original distribution. That means that,
17
20
for example, `init(rng, dist, u::UniformInit)` will in general return values that
18
21
are outside the range [u.lower, u.upper].
You can’t perform that action at this time.
0 commit comments