Skip to content

Commit 55f838f

Browse files
committed
Update changelog
1 parent 6e37eff commit 55f838f

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
@@ -27,11 +27,11 @@ This version therefore excises the context argument, and instead uses `model.con
2727
The upshot of this is that many functions that previously took a context argument now no longer do.
2828
There were very few such functions where the context argument was actually used (most of them simply took `DefaultContext()` as the default value).
2929

30-
`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)`.
30+
`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)`.
3131
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.
3232
If, on the other hand, `ext_context` is a `DefaultContext`, then you can just drop the argument entirely.
3333

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

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

5151
And a couple of more internal changes:
5252

53-
- `evaluate!!`, `evaluate_threadsafe!!`, and `evaluate_threadunsafe!!` no longer accept context arguments
53+
- Just like `evaluate!!`, the other functions `_evaluate!!`, `evaluate_threadsafe!!`, and `evaluate_threadunsafe!!` now no longer accept context arguments
5454
- `evaluate!!` no longer takes rng and sampler (if you used this, you should use `evaluate_and_sample!!` instead, or construct your own `SamplingContext`)
5555
- The model evaluation function, `model.f` for some `model::Model`, no longer takes a context as an argument
56+
- 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.
5657

5758
## 0.36.12
5859

0 commit comments

Comments
 (0)