Skip to content

Commit

Permalink
Code does not highlight in the tip
Browse files Browse the repository at this point in the history
  • Loading branch information
bvdmitri committed Apr 17, 2024
1 parent d2ddcab commit 5420479
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,12 +135,12 @@ In short, the `@model` macro converts a textual description of a probabilistic m

> [!TIP]
> Alternatively, we could use the broadcasting operation:
> ```julia
> @model function coin_model(y, a, b)
> θ ~ Beta(a, b)
> y .~ Bernoulli(θ)
> end
> ```
```julia
@model function coin_model(y, a, b)
θ ~ Beta(a, b)
y .~ Bernoulli(θ)
end
```

As you can see, `RxInfer` in combination with `GraphPPL` offers a model specification syntax that resembles closely to the mathematical equations defined above.

Expand Down

0 comments on commit 5420479

Please sign in to comment.