Skip to content

Commit dde0ed3

Browse files
mhaurupenelopeysm
authored andcommitted
Apply suggestions from code review
Co-authored-by: Penelope Yong <penelopeysm@gmail.com>
1 parent 425539d commit dde0ed3

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

developers/compiler/minituring-contexts/index.qmd

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ Pkg.instantiate();
1414

1515
In the [Mini Turing]({{< meta minituring >}}) tutorial we developed a miniature version of the Turing language, to illustrate its core design. A passing mention was made of contexts. In this tutorial we develop that aspect of our mini Turing language further to demonstrate how and why contexts are an important part of Turing's design.
1616

17+
::: {.callout-important}
1718
Note: The way Turing actually uses contexts changed somewhat in releases 0.39 and 0.40. The content of this page remains relevant, the principles of how contexts operate remain the same, and concepts like leaf and parent contexts still exist. However, we've moved away from using contexts for quite as many things as we used to. Most importantly, whether to accumulate the log joint, log prior, or log likelihood is no longer done using different contexts. Please keep this in mind as you read this page: The principles remain, but the details have changed. We will update this page once the refactoring of internals that is happening around releases like 0.39 and 0.40 is done.
19+
:::
1820

1921
# Mini Turing expanded, now with more contexts
2022

usage/modifying-logprob/index.qmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ using LinearAlgebra
4747
end
4848
```
4949

50-
Note that `@addlogprob!` increases the accumulated log likelihood.
50+
Note that `@addlogprob! (p::Float64)` adds `p` to the log likelihood.
5151
If instead you want to add to the log prior, you can use
5252

5353
```{julia}

0 commit comments

Comments
 (0)