From e9ff315a19a6e527d44daf4b65c8c3857fa8b61b Mon Sep 17 00:00:00 2001 From: James Hensman Date: Thu, 30 Apr 2015 11:46:52 +0100 Subject: [PATCH] bugfix: confused output dim and num_latents in svgp --- GPy/inference/latent_function_inference/svgp.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GPy/inference/latent_function_inference/svgp.py b/GPy/inference/latent_function_inference/svgp.py index e416d0a5..7aad399d 100644 --- a/GPy/inference/latent_function_inference/svgp.py +++ b/GPy/inference/latent_function_inference/svgp.py @@ -8,8 +8,8 @@ class SVGP(LatentFunctionInference): def inference(self, q_u_mean, q_u_chol, kern, X, Z, likelihood, Y, mean_function=None, Y_metadata=None, KL_scale=1.0, batch_scale=1.0): - num_inducing = Z.shape[0] - num_data, num_outputs = Y.shape + num_data, _ = Y.shape + num_inducing, num_outputs = q_u_mean.shape #expand cholesky representation L = choleskies.flat_to_triang(q_u_chol)