|
38 | 38 | """
|
39 | 39 | tilde_assume(ctx, sampler, right, vn, inds, vi)
|
40 | 40 |
|
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. |
43 | 43 |
|
44 | 44 | Falls back to `tilde(ctx, sampler, right, vn, inds, vi)`.
|
45 | 45 | """
|
|
74 | 74 | """
|
75 | 75 | tilde_observe(ctx, sampler, right, left, vname, vinds, vi)
|
76 | 76 |
|
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. |
79 | 79 |
|
80 | 80 | Falls back to `tilde(ctx, sampler, right, left, vi)` ignoring the information about variable name
|
81 | 81 | and indices; if needed, these can be accessed through this function, though.
|
|
89 | 89 | """
|
90 | 90 | tilde_observe(ctx, sampler, right, left, vi)
|
91 | 91 |
|
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 |
93 | 93 | observed value.
|
94 | 94 |
|
95 | 95 | Falls back to `tilde(ctx, sampler, right, left, vi)`.
|
|
199 | 199 | """
|
200 | 200 | dot_tilde_assume(ctx, sampler, right, left, vn, inds, vi)
|
201 | 201 |
|
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. |
204 | 204 |
|
205 | 205 | Falls back to `dot_tilde(ctx, sampler, right, left, vn, inds, vi)`.
|
206 | 206 | """
|
|
377 | 377 | """
|
378 | 378 | dot_tilde_observe(ctx, sampler, right, left, vname, vinds, vi)
|
379 | 379 |
|
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. |
382 | 382 |
|
383 | 383 | Falls back to `dot_tilde(ctx, sampler, right, left, vi)` ignoring the information about variable
|
384 | 384 | name and indices; if needed, these can be accessed through this function, though.
|
|
392 | 392 | """
|
393 | 393 | dot_tilde_observe(ctx, sampler, right, left, vi)
|
394 | 394 |
|
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. |
397 | 397 |
|
398 | 398 | Falls back to `dot_tilde(ctx, sampler, right, left, vi)`.
|
399 | 399 | """
|
|
0 commit comments