Skip to content

Commit

Permalink
Fix missing imports
Browse files Browse the repository at this point in the history
  • Loading branch information
penelopeysm committed Jan 24, 2025
1 parent c119ca7 commit 546f43b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions developers/transforms/bijectors/index.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ import Random
Random.seed!(468);
using Distributions: Normal, LogNormal, logpdf
using Statistics: mean, var
using Plots: histogram
```

A _bijection_ between two sets ([Wikipedia](https://en.wikipedia.org/wiki/Bijection)) is, essentially, a one-to-one mapping between the elements of these sets.
Expand Down
2 changes: 1 addition & 1 deletion developers/transforms/distributions/index.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ It assumes:
import Random
Random.seed!(468);
using Distributions: Normal, LogNormal, logpdf
using Distributions: Normal, LogNormal, logpdf, Distributions
using Plots: histogram
```

Expand Down
4 changes: 3 additions & 1 deletion developers/transforms/dynamicppl/index.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ In the final part of this chapter, we'll discuss the higher-level implications o
```{julia}
import Random
Random.seed!(468);
# Turing re-exports the entirety of Distributions
using Turing
```

When we are performing Bayesian inference, we're trying to sample from a joint probability distribution, which isn't usually a single, well-defined distribution like in the rather simplified example above.
Expand Down Expand Up @@ -134,7 +137,6 @@ We can observe this by inserting print statements into the model.
Here, `__varinfo__` is the internal symbol for the `VarInfo` object used in model evaluation:

```{julia}
using Turing
setprogress!(false)
@model function demo2()
Expand Down

0 comments on commit 546f43b

Please sign in to comment.