We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ffb4933 + 671e0b7 commit 30c8345Copy full SHA for 30c8345
Project.toml
@@ -1,6 +1,6 @@
1
name = "DynamicPPL"
2
uuid = "366bfd00-2699-11ea-058f-f148b4cae6d8"
3
-version = "0.11.1"
+version = "0.11.2"
4
5
[deps]
6
AbstractMCMC = "80f14c24-f653-4e6a-9b94-39d6b0f70001"
@@ -16,7 +16,7 @@ ZygoteRules = "700de1a5-db45-46bc-99cf-38207098b444"
16
AbstractMCMC = "2, 3.0"
17
AbstractPPL = "0.1.2"
18
Bijectors = "0.5.2, 0.6, 0.7, 0.8, 0.9"
19
-ChainRulesCore = "0.9.7"
+ChainRulesCore = "0.9.7, 0.10"
20
Distributions = "0.23.8, 0.24, 0.25"
21
MacroTools = "0.5.6"
22
ZygoteRules = "0.2"
src/DynamicPPL.jl
@@ -83,10 +83,12 @@ export AbstractVarInfo,
83
PrefixContext,
84
assume,
85
dot_assume,
86
- observer,
+ observe,
87
dot_observe,
88
- tilde,
89
- dot_tilde,
+ tilde_assume,
+ tilde_observe,
90
+ dot_tilde_assume,
91
+ dot_tilde_observe,
92
# Pseudo distributions
93
NamedDist,
94
NoDist,
@@ -128,4 +130,17 @@ include("compat/ad.jl")
128
130
include("loglikelihoods.jl")
129
131
include("submodel_macro.jl")
132
133
+# Deprecations.
134
+@deprecate tilde(rng, ctx, sampler, right, vn, inds, vi) tilde_assume(
135
+ rng, ctx, sampler, right, vn, inds, vi
136
+)
137
+@deprecate tilde(ctx, sampler, right, left, vi) tilde_observe(ctx, sampler, right, left, vi)
138
+
139
+@deprecate dot_tilde(rng, ctx, sampler, right, left, vn, inds, vi) dot_tilde_assume(
140
+ rng, ctx, sampler, right, left, vn, inds, vi
141
142
+@deprecate dot_tilde(ctx, sampler, right, left, vi) dot_tilde_observe(
143
+ ctx, sampler, right, left, vi
144
145
146
end # module
src/compiler.jl
@@ -54,17 +54,21 @@ check_tilde_rhs(x::AbstractArray{<:Distribution}) = x
54
55
"""
56
unwrap_right_vn(right, vn)
57
58
Return the unwrapped distribution on the right-hand side and variable name on the left-hand
59
side of a `~` expression such as `x ~ Normal()`.
60
61
This is used mainly to unwrap `NamedDist` distributions.
62
63
unwrap_right_vn(right, vn) = right, vn
64
unwrap_right_vn(right::NamedDist, vn) = unwrap_right_vn(right.dist, right.name)
65
66
67
unwrap_right_left_vns(right, left, vns)
68
69
Return the unwrapped distributions on the right-hand side and values and variable names on the
70
left-hand side of a `.~` expression such as `x .~ Normal()`.
71
72
This is used mainly to unwrap `NamedDist` distributions and adjust the indices of the
73
variables.
74
0 commit comments