Skip to content

Commit 91a6907

Browse files
committed
Reverted the introdces to the testing of
`pointwise_loglikelihoods` (now in `test/deprecated.jl`)
1 parent b8d033a commit 91a6907

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

test/deprecated.jl

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,18 @@
1010

1111
# Compute the pointwise loglikelihoods.
1212
lls = pointwise_loglikelihoods(m, vi)
13-
loglikelihood = sum(sum, values(lls))
1413

15-
#if isempty(lls)
16-
if loglikelihood 0.0 #isempty(lls)
14+
if isempty(lls)
1715
# One of the models with literal observations, so we just skip.
1816
# TODO: Think of better way to detect this special case
1917
continue
2018
end
2119

20+
loglikelihood = sum(sum, values(lls))
2221
loglikelihood_true = DynamicPPL.TestUtils.loglikelihood_true(m, example_values...)
2322

2423
#priors =
2524

2625
@test loglikelihood loglikelihood_true
2726
end
2827
end
29-

0 commit comments

Comments
 (0)