From e34844658f19de38f7fa77346df96755e373d831 Mon Sep 17 00:00:00 2001 From: David Widmann Date: Sat, 10 Apr 2021 11:03:51 +0200 Subject: [PATCH] Import `marginals` (#173) * Update Stheno.jl * Update Project.toml * Add test --- Project.toml | 2 +- src/Stheno.jl | 3 ++- test/sparse_finite_gp.jl | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Project.toml b/Project.toml index b4643ead..a6836ecd 100644 --- a/Project.toml +++ b/Project.toml @@ -1,6 +1,6 @@ name = "Stheno" uuid = "8188c328-b5d6-583d-959b-9690869a5511" -version = "0.7.1" +version = "0.7.2" [deps] AbstractGPs = "99985d1d-32ba-4be9-9821-2ec096f28918" diff --git a/src/Stheno.jl b/src/Stheno.jl index 775093ae..15593067 100644 --- a/src/Stheno.jl +++ b/src/Stheno.jl @@ -28,7 +28,8 @@ module Stheno elbo, dtc, posterior, - approx_posterior + approx_posterior, + marginals using MacroTools: @capture, combinedef, postwalk, splitdef diff --git a/test/sparse_finite_gp.jl b/test/sparse_finite_gp.jl index 9676f33d..b91db9c2 100644 --- a/test/sparse_finite_gp.jl +++ b/test/sparse_finite_gp.jl @@ -18,6 +18,7 @@ fx = f(x) fxu = SparseFiniteGP(f(x), f(xu)) @test mean(fxu) == mean(fx) + @test marginals(fxu) == marginals(fx) @test rand(MersenneTwister(12345), fxu) == rand(MersenneTwister(12345), fx) @test_throws ErrorException(covariance_error) cov(fxu) @test cov(fxu.fobs) == cov(fx)