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
Copy file name to clipboardExpand all lines: docs/julia_files/B_user_guide/4_model_fitting.jl
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -99,7 +99,7 @@ chns = sample_posterior!(model)
99
99
# We can specify the number of samples and chains to sample with the `n_samples` and `n_chains` keyword arguments.
100
100
# The `init_params` keyword argument can be used to specify how the initial parameters for the chains are set.
101
101
# It can be set to `:MAP` or `:MLE` to use the maximum a posteriori or maximum likelihood estimates as the initial parameters, respectively.
102
-
# It can be set to `:sample_prior` to draw a single sample from the prior distribution, or to `nothing` to use Turing's default of random values between -2 and 2 as the initial parameters.`
102
+
# It can be set to `:sample_prior` to draw a single sample from the prior distribution, or to `nothing` to use Turing's default of random values between -2 and 2 as the initial parameters.
103
103
# Finally, a vector of initial parameters can be passed, which will be used as the initial parameters for all chains.
104
104
# Other arguments for the sampling can also be passed. This includes the autodifferentiation backend to use, which can be set with the `ad_type` keyword argument, and the sampler to use, which can be set with the `sampler` keyword argument.
105
105
# Notably, `sample_posterior!` will return the already sampled `Chains` object if the posterior has already been sampled. Set `resample = true` to override the already sampled posterior.
0 commit comments