some work on ep, and some messing with wher ethe derivatives are computed (in the model, not the inference

This commit is contained in:
Ricardo 2014-02-26 11:38:46 +00:00
parent b6edc1a298
commit 0cf1e44c68
4 changed files with 40 additions and 5 deletions

View file

@ -49,8 +49,7 @@ class ExactGaussianInference(object):
dL_dK = 0.5 * (tdot(alpha) - Y.shape[1] * Wi)
kern.update_gradients_full(dL_dK, X)
#TODO: does this really live here?
likelihood.update_gradients(np.diag(dL_dK))
return Posterior(woodbury_chol=LW, woodbury_vector=alpha, K=K), log_marginal, {'dL_dK':dL_dK}