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
+16Lines changed: 16 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,6 +23,22 @@ Turing.jl v0.37 uses DynamicPPL v0.35, which brings with it several breaking cha
23
23
24
24
For more details about all of the above, see the changelog of DynamicPPL [here](https://github.com/TuringLang/DynamicPPL.jl/releases/tag/v0.35.0).
25
25
26
+
### Export list
27
+
28
+
Turing.jl's export list has been cleaned up a fair bit. This affects what is imported into your namespace when you do an unqualified `using Turing`. You may need to import things more explicitly than before.
29
+
30
+
- The `DynamicPPL` and `AbstractMCMC` modules are no longer exported. You will need to `import DynamicPPL` or `using DynamicPPL: DynamicPPL` (likewise `AbstractMCMC`) yourself, which in turn means that they have to be made available in your project environment.
31
+
32
+
-`@logprob_str` and `@prob_str` have been removed following a long deprecation period.
33
+
- We no longer re-export everything from `Bijectors` and `Libtask`. To get around this, add `using Bijectors` or `using Libtask` at the top of your script (but we recommend using more selective imports).
34
+
35
+
+ We no longer export `Bijectors.ordered`. If you were using `ordered`, even Bijectors does not (currently) export this. You will have to manually import it with `using Bijectors: ordered`.
36
+
37
+
On the other hand, we have added a few more exports:
38
+
39
+
-`DynamicPPL.returned` and `DynamicPPL.prefix` are exported (for use with submodels).
|`@model`|[`DynamicPPL.@model`](@extref)| Define a probabilistic model |
41
+
|`@varname`|[`AbstractPPL.@varname`](@extref)| Generate a `VarName` from a Julia expression |
42
+
|`to_submodel`|[`DynamicPPL.to_submodel`](@extref)| Define a submodel |
43
+
|`prefix`|[`DynamicPPL.prefix`](@extref)| Prefix all variable names in a model with a given symbol |
44
+
|`LogDensityFunction`|[`DynamicPPL.LogDensityFunction`](@extref)| A struct containing all information about how to evaluate a model. Mostly for advanced users |
|`predict`|[`StatsAPI.predict`](https://turinglang.org/DynamicPPL.jl/stable/api/#Predicting)| Generate samples from posterior predictive distribution |
131
129
132
130
### Querying model probabilities and quantities
133
131
134
132
Please see the [generated quantities](https://turinglang.org/docs/tutorials/usage-generated-quantities/) and [probability interface](https://turinglang.org/docs/tutorials/usage-probability-interface/) guides for more information.
|`generated_quantities`|[`DynamicPPL.generated_quantities`](@extref)| Calculate additional quantities defined in a model |
139
-
|`pointwise_loglikelihoods`|[`DynamicPPL.pointwise_loglikelihoods`](@extref)| Compute log likelihoods for each sample in a chain |
140
-
|`logprior`|[`DynamicPPL.logprior`](@extref)| Compute log prior probability |
141
-
|`logjoint`|[`DynamicPPL.logjoint`](@extref)| Compute log joint probability |
142
-
|`LogDensityFunction`|[`DynamicPPL.LogDensityFunction`](@extref)| Wrap a Turing model to satisfy LogDensityFunctions.jl interface |
143
-
|`condition`|[`AbstractPPL.condition`](@extref)| Condition a model on data |
144
-
|`decondition`|[`AbstractPPL.decondition`](@extref)| Remove conditioning on data |
145
-
|`conditioned`|[`DynamicPPL.conditioned`](@extref)| Return the conditioned values of a model |
146
-
|`fix`|[`DynamicPPL.fix`](@extref)| Fix the value of a variable |
147
-
|`unfix`|[`DynamicPPL.unfix`](@extref)| Unfix the value of a variable |
148
-
|`OrderedDict`|[`OrderedCollections.OrderedDict`](https://juliacollections.github.io/OrderedCollections.jl/dev/ordered_containers/#OrderedDicts)| An ordered dictionary |
149
-
150
-
### Extra re-exports from Bijectors
151
-
152
-
Note that Bijectors itself does not export `ordered`.
|`returned`|[`DynamicPPL.returned`](https://turinglang.org/DynamicPPL.jl/stable/api/#DynamicPPL.returned-Tuple%7BModel,%20NamedTuple%7D)| Calculate additional quantities defined in a model |
137
+
|`pointwise_loglikelihoods`|[`DynamicPPL.pointwise_loglikelihoods`](@extref)| Compute log likelihoods for each sample in a chain |
138
+
|`logprior`|[`DynamicPPL.logprior`](@extref)| Compute log prior probability |
139
+
|`logjoint`|[`DynamicPPL.logjoint`](@extref)| Compute log joint probability |
140
+
|`condition`|[`AbstractPPL.condition`](@extref)| Condition a model on data |
141
+
|`decondition`|[`AbstractPPL.decondition`](@extref)| Remove conditioning on data |
142
+
|`conditioned`|[`DynamicPPL.conditioned`](@extref)| Return the conditioned values of a model |
143
+
|`fix`|[`DynamicPPL.fix`](@extref)| Fix the value of a variable |
144
+
|`unfix`|[`DynamicPPL.unfix`](@extref)| Unfix the value of a variable |
145
+
|`OrderedDict`|[`OrderedCollections.OrderedDict`](@extref)| An ordered dictionary |
0 commit comments