mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-08 03:22:38 +02:00
minimual edits to exact_inference
This commit is contained in:
parent
e97b6e59aa
commit
90cc217e37
1 changed files with 7 additions and 2 deletions
|
|
@ -40,9 +40,14 @@ class ExactGaussianInference(LatentFunctionInference):
|
|||
"""
|
||||
Returns a Posterior class containing essential quantities of the posterior
|
||||
"""
|
||||
assert mean_function is None, "inference with a mean function not implemented"
|
||||
|
||||
YYT_factor = self.get_YYTfactor(Y)
|
||||
if mean_function is None:
|
||||
m = 0
|
||||
else:
|
||||
m = mean_function.f(X)
|
||||
|
||||
|
||||
YYT_factor = self.get_YYTfactor(Y-m)
|
||||
|
||||
K = kern.K(X)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue