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.
1 parent b8d033a commit 91a6907Copy full SHA for 91a6907
test/deprecated.jl
@@ -10,20 +10,18 @@
10
11
# Compute the pointwise loglikelihoods.
12
lls = pointwise_loglikelihoods(m, vi)
13
- loglikelihood = sum(sum, values(lls))
14
15
- #if isempty(lls)
16
- if loglikelihood ≈ 0.0 #isempty(lls)
+ if isempty(lls)
17
# One of the models with literal observations, so we just skip.
18
# TODO: Think of better way to detect this special case
19
continue
20
end
21
+ loglikelihood = sum(sum, values(lls))
22
loglikelihood_true = DynamicPPL.TestUtils.loglikelihood_true(m, example_values...)
23
24
#priors =
25
26
@test loglikelihood ≈ loglikelihood_true
27
28
29
-
0 commit comments