mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-30 14:35:15 +02:00
allow NCC init for inference_X
This commit is contained in:
parent
131f4f3fc3
commit
fbc6bd0ec8
2 changed files with 4 additions and 4 deletions
|
|
@ -4,8 +4,8 @@ import numpy as np
|
|||
from ...core import Model
|
||||
from ...core.parameterization import variational
|
||||
|
||||
def inference_newX(model, Y_new, optimize=True):
|
||||
infr_m = Inference_X(model, Y_new)
|
||||
def inference_newX(model, Y_new, optimize=True, init='L2'):
|
||||
infr_m = Inference_X(model, Y_new, init=init)
|
||||
|
||||
if optimize:
|
||||
infr_m.optimize()
|
||||
|
|
|
|||
|
|
@ -119,8 +119,8 @@ class SSGPLVM(SparseGP_MPI):
|
|||
else:
|
||||
return dim_reduction_plots.plot_latent(self, plot_inducing=plot_inducing, *args, **kwargs)
|
||||
|
||||
def inference_X(self, Y_new, optimize=True):
|
||||
def inference_X(self, Y_new, optimize=True, init='L2'):
|
||||
from ..inference.latent_function_inference.inference_X import inference_newX
|
||||
return inference_newX(self, Y_new, optimize=optimize)
|
||||
return inference_newX(self, Y_new, optimize=optimize, init=init)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue