mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-11 21:12:38 +02:00
constant jitter
This commit is contained in:
parent
a9a285c790
commit
f7223ea377
2 changed files with 3 additions and 2 deletions
|
|
@ -46,7 +46,7 @@ class ExactGaussianInference(object):
|
|||
alpha, _ = dpotrs(LW, YYT_factor, lower=1)
|
||||
|
||||
log_marginal = 0.5*(-Y.size * log_2_pi - Y.shape[1] * W_logdet - np.sum(alpha * YYT_factor))
|
||||
|
||||
|
||||
dL_dK = 0.5 * (tdot(alpha) - Y.shape[1] * Wi)
|
||||
|
||||
#TODO: does this really live here?
|
||||
|
|
|
|||
|
|
@ -77,7 +77,8 @@ class VarDTC(object):
|
|||
num_inducing = Z.shape[0]
|
||||
num_data = Y.shape[0]
|
||||
# kernel computations, using BGPLVM notation
|
||||
Kmm = kern.K(Z)
|
||||
|
||||
Kmm = kern.K(Z) +np.eye(Z.shape[0]) * self.const_jitter
|
||||
|
||||
Lm = jitchol(Kmm)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue