Skip to content

Commit 327b28c

Browse files
fix urls (#651)
1 parent c722e96 commit 327b28c

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

developers/inference/abstractmcmc-turing/index.qmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ $$
262262

263263
with $\theta_{\text{prop}}$ a sample from the proposal and $x_{\text{obs}}$ the observed data.
264264

265-
This begs the question: how can these functions access model information during sampling? Recall that the model is stored as an instance `m` of `Model`. One of the attributes of `m` is the model evaluation function `m.f`, which is built by compiling the `@model` macro. Executing `f` runs the tilde statements of the model in order, and adds model information to the sampler (the instance of `Sampler` that stores information about the ongoing sampling process) at each step (see [here](https://turinglang.org/dev/docs/for-developers/compiler) for more information about how the `@model` macro is compiled). The DynamicPPL functions `assume` and `observe` determine what kind of information to add to the sampler for every tilde statement.
265+
This begs the question: how can these functions access model information during sampling? Recall that the model is stored as an instance `m` of `Model`. One of the attributes of `m` is the model evaluation function `m.f`, which is built by compiling the `@model` macro. Executing `f` runs the tilde statements of the model in order, and adds model information to the sampler (the instance of `Sampler` that stores information about the ongoing sampling process) at each step (see [here]({{<meta dev-model-manual>}}) for more information about how the `@model` macro is compiled). The DynamicPPL functions `assume` and `observe` determine what kind of information to add to the sampler for every tilde statement.
266266

267267
Consider an instance `m` of `Model` and a sampler `spl`, with associated `VarInfo` `vi = spl.state.vi`. At some point during the sampling process, an AbstractMCMC function such as `step!` calls `m(vi, ...)`, which calls the model evaluation function `m.f(vi, ...)`.
268268

faq/index.qmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ Turing.jl fully supports sampling multiple chains in parallel:
5555
- **Multithreaded sampling**: Use `MCMCThreads()` to run one chain per thread
5656
- **Distributed sampling**: Use `MCMCDistributed()` for distributed computing
5757

58-
See the [Core Functionality guide]({{< meta core-functionality >}}/#sampling-multiple-chains) for examples.
58+
See the [Core Functionality guide]({{<meta core-functionality>}}#sampling-multiple-chains) for examples.
5959

6060
### 2. Threading Within Models
6161
Using threads inside your model (e.g., `Threads.@threads`) requires more care:

tutorials/bayesian-logistic-regression/index.qmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ chain
152152
::: {.callout-warning collapse="true"}
153153
## Sampling With Multiple Threads
154154
The `sample()` call above assumes that you have at least `nchains` threads available in your Julia instance. If you do not, the multiple chains
155-
will run sequentially, and you may notice a warning. For more information, see [the Turing documentation on sampling multiple chains.](https://turinglang.org/dev/docs/using-turing/guide/#sampling-multiple-chains)
155+
will run sequentially, and you may notice a warning. For more information, see [the Turing documentation on sampling multiple chains.]({{<meta core-functionality>}}#sampling-multiple-chains)
156156
:::
157157

158158
```{julia}

tutorials/bayesian-poisson-regression/index.qmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ chain
172172
::: {.callout-warning collapse="true"}
173173
## Sampling With Multiple Threads
174174
The `sample()` call above assumes that you have at least `nchains` threads available in your Julia instance. If you do not, the multiple chains
175-
will run sequentially, and you may notice a warning. For more information, see [the Turing documentation on sampling multiple chains.](https://turinglang.org/dev/docs/using-turing/guide/#sampling-multiple-chains)
175+
will run sequentially, and you may notice a warning. For more information, see [the Turing documentation on sampling multiple chains.]({{<meta core-functionality>}}#sampling-multiple-chains)
176176
:::
177177

178178
# Viewing the Diagnostics

0 commit comments

Comments
 (0)