From c29c4e20c1b1819f09ddcdbcc73e02958dfb3f90 Mon Sep 17 00:00:00 2001 From: Zhenwen Dai Date: Tue, 4 Mar 2014 10:43:29 +0000 Subject: [PATCH] [SSGPLVM] fix plot_latent --- GPy/models/ss_gplvm.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/GPy/models/ss_gplvm.py b/GPy/models/ss_gplvm.py index 0c276fe3..8c9d6f23 100644 --- a/GPy/models/ss_gplvm.py +++ b/GPy/models/ss_gplvm.py @@ -67,8 +67,11 @@ class SSGPLVM(SparseGP): self.variational_prior.update_gradients_KL(self.X) def plot_latent(self, plot_inducing=True, *args, **kwargs): - pass - #return plot_latent.plot_latent(self, plot_inducing=plot_inducing, *args, **kwargs) + import sys + assert "matplotlib" in sys.modules, "matplotlib package has not been imported." + from ..plotting.matplot_dep import dim_reduction_plots + + return dim_reduction_plots.plot_latent(self, plot_inducing=plot_inducing, *args, **kwargs) def do_test_latents(self, Y): """