From cdd3732fceb8dcb3a6f0b9c8a96e5efec614d418 Mon Sep 17 00:00:00 2001 From: Max Zwiessele Date: Wed, 5 Feb 2014 09:08:01 +0000 Subject: [PATCH] plot_latent now shows selected inputs, even after switching dimensions --- GPy/util/plot_latent.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/GPy/util/plot_latent.py b/GPy/util/plot_latent.py index 997f3df2..9ebc5a4e 100644 --- a/GPy/util/plot_latent.py +++ b/GPy/util/plot_latent.py @@ -41,9 +41,8 @@ def plot_latent(model, labels=None, which_indices=None, # first, plot the output variance as a function of the latent space Xtest, xx, yy, xmin, xmax = util.plot.x_frame2D(model.X[:, [input_1, input_2]], resolution=resolution) #Xtest_full = np.zeros((Xtest.shape[0], model.X.shape[1])) - + Xtest_full = np.zeros((Xtest.shape[0], model.X.shape[1])) def plot_function(x): - Xtest_full = np.zeros((Xtest.shape[0], model.X.shape[1])) Xtest_full[:, [input_1, input_2]] = x mu, var, low, up = model.predict(Xtest_full) var = var[:, :1]