Skip to content

Commit dfb4b74

Browse files
committed
Categorical imperatives
1 parent cba22b1 commit dfb4b74

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/context_implementations.jl

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ end
3838
"""
3939
tilde_assume(ctx, sampler, right, vn, inds, vi)
4040
41-
Handles assumed variables, e.g., `x ~ Normal()` (where `x` does occur in the model inputs),
42-
accumulates the log probability, and returns the sampled value.
41+
Handle assumed variables, e.g., `x ~ Normal()` (where `x` does occur in the model inputs),
42+
accumulate the log probability, and return the sampled value.
4343
4444
Falls back to `tilde(ctx, sampler, right, vn, inds, vi)`.
4545
"""
@@ -74,8 +74,8 @@ end
7474
"""
7575
tilde_observe(ctx, sampler, right, left, vname, vinds, vi)
7676
77-
Handles observed variables, e.g., `x ~ Normal()` (where `x` does occur in the model inputs),
78-
accumulates the log probability, and returns the observed value.
77+
Handle observed variables, e.g., `x ~ Normal()` (where `x` does occur in the model inputs),
78+
accumulate the log probability, and return the observed value.
7979
8080
Falls back to `tilde(ctx, sampler, right, left, vi)` ignoring the information about variable name
8181
and indices; if needed, these can be accessed through this function, though.
@@ -89,7 +89,7 @@ end
8989
"""
9090
tilde_observe(ctx, sampler, right, left, vi)
9191
92-
Handles observed constants, e.g., `1.0 ~ Normal()`, accumulates the log probability, and returns the
92+
Handle observed constants, e.g., `1.0 ~ Normal()`, accumulate the log probability, and return the
9393
observed value.
9494
9595
Falls back to `tilde(ctx, sampler, right, left, vi)`.
@@ -199,8 +199,8 @@ end
199199
"""
200200
dot_tilde_assume(ctx, sampler, right, left, vn, inds, vi)
201201
202-
Handles broadcasted assumed variables, e.g., `x .~ MvNormal()` (where `x` does not occur in the
203-
model inputs), accumulates the log probability, and returns the sampled value.
202+
Handle broadcasted assumed variables, e.g., `x .~ MvNormal()` (where `x` does not occur in the
203+
model inputs), accumulate the log probability, and return the sampled value.
204204
205205
Falls back to `dot_tilde(ctx, sampler, right, left, vn, inds, vi)`.
206206
"""
@@ -377,8 +377,8 @@ end
377377
"""
378378
dot_tilde_observe(ctx, sampler, right, left, vname, vinds, vi)
379379
380-
Handles broadcasted observed values, e.g., `x .~ MvNormal()` (where `x` does occur the model inputs),
381-
accumulates the log probability, and returns the observed value.
380+
Handle broadcasted observed values, e.g., `x .~ MvNormal()` (where `x` does occur the model inputs),
381+
accumulate the log probability, and return the observed value.
382382
383383
Falls back to `dot_tilde(ctx, sampler, right, left, vi)` ignoring the information about variable
384384
name and indices; if needed, these can be accessed through this function, though.
@@ -392,8 +392,8 @@ end
392392
"""
393393
dot_tilde_observe(ctx, sampler, right, left, vi)
394394
395-
Handles broadcasted observed constants, e.g., `[1.0] .~ MvNormal()`, accumulates the log
396-
probability, and returns the observed value.
395+
Handle broadcasted observed constants, e.g., `[1.0] .~ MvNormal()`, accumulate the log
396+
probability, and return the observed value.
397397
398398
Falls back to `dot_tilde(ctx, sampler, right, left, vi)`.
399399
"""

0 commit comments

Comments
 (0)