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
@@ -72,20 +74,10 @@ and then we can call `rand` and `logpdf` as usual, where
72
74
73
75
To read more about Bijectors.jl, check out [the project README](https://github.com/TuringLang/Bijectors.jl).
74
76
75
-
#### 3.2 Vectorization Support
76
-
77
-
78
-
The vectorization syntax follows `rv ~ [distribution]`, which requires `rand` and `logpdf` to be called on multiple data points at once. An appropriate implementation for `Flat` is shown below.
The `@model` macro accepts a function definition and rewrites it such that call of the function generates a `Model` struct for use by the sampler. Models can be constructed by hand without the use of a macro. Taking the `gdemo` model as an example, the macro-based definition
130
+
The `@model` macro accepts a function definition and rewrites it such that call of the function generates a `Model` struct for use by the sampler.
131
+
Models can be constructed by hand without the use of a macro.
132
+
Taking the `gdemo` model as an example, the macro-based definition
139
133
140
134
```julia
141
135
using Turing
@@ -152,41 +146,36 @@ end
152
146
model =gdemo([1.5, 2.0])
153
147
```
154
148
155
-
is equivalent to the macro-free version
149
+
can be implemented also (a bit less generally) with the macro-free version
0 commit comments