-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -303,7 +303,7 @@ function update_target_and_dtarget!(gp::GPMC; kwargs...) | |
update_target_and_dtarget!(gp, precomp; kwargs...) | ||
end | ||
|
||
predict_full(gp::GPMC, xpred::AbstractMatrix) = predictMVN(gp,xpred, gp.x, gp.y, gp.kernel, gp.mean, gp.v, gp.covstrat, gp.cK) | ||
predict_full(gp::GPMC, xpred::AbstractMatrix) = predictMVN(xpred, gp.x, gp.y, gp.kernel, gp.mean, whiten(gp.cK,gp.v), gp.covstrat, gp.cK) | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
chris-nemeth
Member
|
||
""" | ||
predict_y(gp::GPMC, x::Union{Vector{Float64},Matrix{Float64}}[; full_cov::Bool=false]) | ||
|
@@ -312,15 +312,6 @@ are given as columns of matrix `x`. If `full_cov` is `true`, the full covariance | |
returned instead of only variances. | ||
""" | ||
|
||
|
||
function predictMVN!(gp::GPMC,Kxx, Kff, Kfx, mx, αf) | ||
Lck = whiten!(Kff, Kfx) | ||
mu = mx + Lck' * αf | ||
subtract_Lck!(Kxx, Lck) | ||
return mu, Kxx | ||
end | ||
|
||
|
||
function predict_y(gp::GPMC, x::AbstractMatrix; full_cov::Bool=false) | ||
μ, σ2 = predict_f(gp, x; full_cov=full_cov) | ||
return predict_obs(gp.lik, μ, σ2) | ||
|
@chris-nemeth does this linear algebra make sense to you? It worries me that it was wrong (before you fixed it) but the tests were passing. Can you think of a test that would have caught my earlier mistake?