Skip to content

Commit 408b951

Browse files
committed
Fix doctests
1 parent 40eddde commit 408b951

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/simple_varinfo.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,15 +122,15 @@ Evaluation in transformed space of course also works:
122122
123123
```jldoctest simplevarinfo-general
124124
julia> vi = DynamicPPL.settrans!!(SimpleVarInfo((x = -1.0,)), true)
125-
Transformed SimpleVarInfo((x = -1.0,), AccumulatorTuple((LogPrior = LogPriorAccumulator(0.0), LogLikelihood = LogLikelihoodAccumulator(0.0), NumProduce = NumProduceAccumulator(0))))
125+
Transformed SimpleVarInfo((x = -1.0,), (LogPrior = LogPriorAccumulator(0.0), LogLikelihood = LogLikelihoodAccumulator(0.0), NumProduce = NumProduceAccumulator(0)))
126126
127127
julia> # (✓) Positive probability mass on negative numbers!
128128
getlogjoint(last(DynamicPPL.evaluate!!(m, vi)))
129129
-1.3678794411714423
130130
131131
julia> # While if we forget to indicate that it's transformed:
132132
vi = DynamicPPL.settrans!!(SimpleVarInfo((x = -1.0,)), false)
133-
SimpleVarInfo((x = -1.0,), AccumulatorTuple((LogPrior = LogPriorAccumulator(0.0), LogLikelihood = LogLikelihoodAccumulator(0.0), NumProduce = NumProduceAccumulator(0))))
133+
SimpleVarInfo((x = -1.0,), (LogPrior = LogPriorAccumulator(0.0), LogLikelihood = LogLikelihoodAccumulator(0.0), NumProduce = NumProduceAccumulator(0)))
134134
135135
julia> # (✓) No probability mass on negative numbers!
136136
getlogjoint(last(DynamicPPL.evaluate!!(m, vi)))

0 commit comments

Comments
 (0)