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
Copy file name to clipboardExpand all lines: HISTORY.md
+4-3Lines changed: 4 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,8 +35,9 @@ To aid with this process, `contextualize` is now exported from DynamicPPL.
35
35
36
36
The main situation where one _did_ want to specify an additional evaluation context was when that context was a `SamplingContext`.
37
37
Doing this would allow you to run the model and sample fresh values, instead of just using the values that existed in the VarInfo object.
38
-
Thus, this release also introduces the unexported function `sample!!`.
39
-
Essentially, `sample!!(rng, model, varinfo, sampler)` is a drop-in replacement for `evaluate!!(model, varinfo, SamplingContext(rng, sampler))`.
38
+
Thus, this release also introduces the **unexported** function `evaluate_and_sample!!`.
39
+
Essentially, `evaluate_and_sample!!(rng, model, varinfo, sampler)` is a drop-in replacement for `evaluate!!(model, varinfo, SamplingContext(rng, sampler))`.
40
+
**Do note that this is an internal method**, and its name or semantics are liable to change in the future without warning.
40
41
41
42
There are many methods that no longer take a context argument, and listing them all would be too much.
42
43
However, here are the more user-facing ones:
@@ -50,7 +51,7 @@ However, here are the more user-facing ones:
50
51
And a couple of more internal changes:
51
52
52
53
-`evaluate!!`, `evaluate_threadsafe!!`, and `evaluate_threadunsafe!!` no longer accept context arguments
53
-
-`evaluate!!` no longer takes rng and sampler (if you used this, you should use `sample!!` instead, or construct your own `SamplingContext`)
54
+
-`evaluate!!` no longer takes rng and sampler (if you used this, you should use `evaluate_and_sample!!` instead, or construct your own `SamplingContext`)
54
55
- The model evaluation function, `model.f` for some `model::Model`, no longer takes a context as an argument
0 commit comments