Added binomial likelihood

Also some changes to pass through Y_metadata, where it had previously
been (errorneously) omitted.
This commit is contained in:
James Hensman 2015-03-05 10:26:02 +00:00
parent 89b8b0d298
commit 48821a6b73
5 changed files with 133 additions and 14 deletions

View file

@ -43,7 +43,7 @@ class SVGP(LatentFunctionInference):
#quadrature for the likelihood
F, dF_dmu, dF_dv, dF_dthetaL = likelihood.variational_expectations(Y, mu, v)
F, dF_dmu, dF_dv, dF_dthetaL = likelihood.variational_expectations(Y, mu, v, Y_metadata=Y_metadata)
#rescale the F term if working on a batch
F, dF_dmu, dF_dv = F*batch_scale, dF_dmu*batch_scale, dF_dv*batch_scale