Skip to content

Commit c79fe47

Browse files
committed
Update changelog
1 parent 7f94016 commit c79fe47

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

HISTORY.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ This version therefore excises the context argument, and instead uses `model.con
3131
The upshot of this is that many functions that previously took a context argument now no longer do.
3232
There were very few such functions where the context argument was actually used (most of them simply took `DefaultContext()` as the default value).
3333

34-
`evaluate!!(model, varinfo, ext_context)` is deprecated, and broadly speaking you should replace calls to that with `new_model = contextualize(model, ext_context); evaluate!!(new_model, varinfo)`.
34+
`evaluate!!(model, varinfo, ext_context)` is removed, and broadly speaking you should replace calls to that with `new_model = contextualize(model, ext_context); evaluate!!(new_model, varinfo)`.
3535
If the 'external context' `ext_context` is a parent context, then you should wrap `model.context` appropriately to ensure that its information content is not lost.
3636
If, on the other hand, `ext_context` is a `DefaultContext`, then you can just drop the argument entirely.
3737

38-
To aid with this process, `contextualize` is now exported from DynamicPPL.
38+
**To aid with this process, `contextualize` is now exported from DynamicPPL.**
3939

4040
The main situation where one _did_ want to specify an additional evaluation context was when that context was a `SamplingContext`.
4141
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.
@@ -54,9 +54,10 @@ However, here are the more user-facing ones:
5454

5555
And a couple of more internal changes:
5656

57-
- `evaluate!!`, `evaluate_threadsafe!!`, and `evaluate_threadunsafe!!` no longer accept context arguments
57+
- Just like `evaluate!!`, the other functions `_evaluate!!`, `evaluate_threadsafe!!`, and `evaluate_threadunsafe!!` now no longer accept context arguments
5858
- `evaluate!!` no longer takes rng and sampler (if you used this, you should use `evaluate_and_sample!!` instead, or construct your own `SamplingContext`)
5959
- The model evaluation function, `model.f` for some `model::Model`, no longer takes a context as an argument
60+
- The internal representation and API dealing with submodels (i.e., `ReturnedModelWrapper`, `Sampleable`, `should_auto_prefix`, `is_rhs_model`) has been simplified. If you need to check whether something is a submodel, just use `x isa DynamicPPL.Submodel`. Note that the public API i.e. `to_submodel` remains completely untouched.
6061

6162
## 0.36.12
6263

0 commit comments

Comments
 (0)