Skip to content

Commit 28319c5

Browse files
authored
Do Not Use Deprecated Behaviour (#418)
* Bump patch version * dtc -> approx_log_evidence * Bump AbstractGPs version
1 parent 58d858a commit 28319c5

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "AbstractGPs"
22
uuid = "99985d1d-32ba-4be9-9821-2ec096f28918"
33
authors = ["JuliaGaussianProcesses Team"]
4-
version = "0.5.22"
4+
version = "0.5.23"
55

66
[deps]
77
ChainRulesCore = "d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4"

docs/Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
44
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
55

66
[compat]
7-
AbstractGPs = "0.4, 0.5"
7+
AbstractGPs = "0.5"
88
Documenter = "1"

src/util/TestUtils.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,9 @@ function test_internal_abstractgps_interface(
212212
@test logpdf(fx, y) isa Real
213213
@test elbo(VFE(f(x, jitter)), fx, y) logpdf(fx, y) rtol = 1e-5 atol = 1e-5
214214
@test elbo(VFE(f(z, jitter)), fx, y) <= logpdf(fx, y)
215-
@test dtc(VFE(f(x, jitter)), fx, y) logpdf(fx, y) rtol = 1e-5 atol = 1e-5
215+
@test isapprox(
216+
approx_log_evidence(VFE(f(x, jitter)), fx, y), logpdf(fx, y); rtol=1e-5, atol=1e-5
217+
)
216218
end
217219

218220
end

test/sparse_approximations.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@
108108
jitter = T(1e-12)
109109

110110
@test elbo(ApproxType(f(x, jitter)), fx, y) isa T
111-
@test dtc(ApproxType(f(x, jitter)), fx, y) isa T
111+
@test approx_log_evidence(ApproxType(f(x, jitter)), fx, y) isa T
112112

113113
post = posterior(ApproxType(f(x, jitter)), fx, y)
114114
p_fx = post(x, jitter)

0 commit comments

Comments
 (0)