You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In DynamicPPL a generic sampler for inference is implemented.
498
+
`init_strategy(spl)` defines how parameters are to be initialised when performing MCMC sampling with `spl`.
499
499
500
500
```@docs
501
-
Sampler
501
+
DynamicPPL.init_strategy
502
502
```
503
503
504
-
The default implementation of [`Sampler`](@ref) uses the following unexported functions.
504
+
`loadstate` is used for resuming sampling from a previous chain.
505
505
506
506
```@docs
507
-
DynamicPPL.initialstep
508
507
DynamicPPL.loadstate
509
-
DynamicPPL.init_strategy
510
508
```
511
509
512
-
Finally, to specify which varinfo type a [`Sampler`](@ref) should use for a given [`Model`](@ref), this is specified by [`DynamicPPL.default_varinfo`](@ref) and can thus be overloaded for each `model`-`sampler` combination. This can be useful in cases where one has explicit knowledge that one type of varinfo will be more performant for the given `model` and `sampler`.
510
+
Finally, to specify which varinfo type a sampler should use for a given [`Model`](@ref), this is specified by [`DynamicPPL.default_varinfo`](@ref) and can thus be overloaded for each `model`-`sampler` combination. This can be useful in cases where one has explicit knowledge that one type of varinfo will be more performant for the given `model` and `sampler`.
0 commit comments