Skip to content

Commit 39b958d

Browse files
penelopeysmmhauru
andauthored
Docstring improvements
Co-authored-by: Markus Hauru <[email protected]>
1 parent 1bdb76e commit 39b958d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/model.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -873,10 +873,10 @@ end
873873
874874
Evaluate the `model` and replace the values of the model's random variables
875875
in the given `varinfo` with new values, using a specified initialisation strategy.
876-
If the values in `varinfo` are not set, they will be added.
876+
If the values in `varinfo` are not set, they will be added
877877
using a specified initialisation strategy.
878878
879-
If `init_strategy` is not provided, defaults to InitFromPrior().
879+
If `init_strategy` is not provided, defaults to `InitFromPrior()`.
880880
881881
Returns a tuple of the model's return value, plus the updated `varinfo` object.
882882
"""

src/sampler.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Generic sampler type for inference algorithms of type `T` in DynamicPPL.
4141
provided that supports resuming sampling from a previous state and setting initial
4242
parameter values. It requires to overload [`loadstate`](@ref) and [`initialstep`](@ref)
4343
for loading previous states and actually performing the initial sampling step,
44-
respectively. Additionally, sometimes one might want to implement [`init_strategy`](@ref)
44+
respectively. Additionally, sometimes one might want to implement an [`init_strategy`](@ref)
4545
that specifies how the initial parameter values are sampled if they are not provided.
4646
By default, values are sampled from the prior.
4747
"""

0 commit comments

Comments
 (0)