allow inference_X not optimize

This commit is contained in:
Zhenwen Dai 2014-10-14 10:29:56 +01:00
parent 55077161d4
commit 91eea829a2

View file

@ -122,7 +122,7 @@ class SSGPLVM(SparseGP_MPI):
else: else:
return dim_reduction_plots.plot_latent(self, plot_inducing=plot_inducing, *args, **kwargs) return dim_reduction_plots.plot_latent(self, plot_inducing=plot_inducing, *args, **kwargs)
def inference_X(self, Y_new): def inference_X(self, Y_new, optimize=True):
from ..inference.latent_function_inference.inference_X import inference_newX from ..inference.latent_function_inference.inference_X import inference_newX
return inference_newX(self, Y_new) return inference_newX(self, Y_new, optimize=optimize)