Skip to content

Commit

Permalink
revert change that is separated into #239
Browse files Browse the repository at this point in the history
  • Loading branch information
st-- committed Mar 30, 2022
1 parent 48f9b23 commit 30a20b5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/sparse_approximations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Intelligence and Statistics. 2009.
function posterior(vfe::VFE, fx::FiniteGP, y::AbstractVector{<:Real})
@assert vfe.fz.f === fx.f

U_y = _cholesky(fx.Σy).U
U_y = _cholesky(_symmetric(fx.Σy)).U
U = cholesky(_symmetric(cov(vfe.fz))).U

B_εf = U' \ (U_y' \ cov(fx, vfe.fz))'
Expand Down Expand Up @@ -85,7 +85,7 @@ function update_posterior(
U = f_post_approx.data.U
z = inducing_points(f_post_approx)

U_y₂ = _cholesky(fx.Σy).U
U_y₂ = _cholesky(_symmetric(fx.Σy)).U

temp = zeros(size(f_post_approx.data.Σy, 1), size(fx.Σy, 2))
Σy = [f_post_approx.data.Σy temp; temp' fx.Σy]
Expand Down Expand Up @@ -136,7 +136,7 @@ function update_posterior(f_post_approx::ApproxPosteriorGP{<:VFE}, fz::FiniteGP)
Cu1f = cov(f_post_approx.prior, z_old, f_post_approx.data.x)
Cu2f = cov(f_post_approx.prior, z, f_post_approx.data.x)

U_y = _cholesky(f_post_approx.data.Σy).U
U_y = _cholesky(_symmetric(f_post_approx.data.Σy)).U

B_εf₂ = U22' \ (Cu2f * inv(U_y) - U12' * B_εf₁)
B_εf = vcat(B_εf₁, B_εf₂)
Expand Down

0 comments on commit 30a20b5

Please sign in to comment.