mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-15 06:52:39 +02:00
[dir] structure preserved
This commit is contained in:
parent
e79ab98385
commit
568a38dfba
29 changed files with 48 additions and 46 deletions
|
|
@ -2,8 +2,8 @@
|
|||
# Licensed under the BSD 3-clause license (see LICENSE.txt)
|
||||
|
||||
import numpy as np
|
||||
from ...core import ProbabilisticModel
|
||||
from ...core import variational
|
||||
from ...core import Model
|
||||
from GPy.core.parameterization import variational
|
||||
from ...util.linalg import tdot
|
||||
|
||||
def infer_newX(model, Y_new, optimize=True, init='L2'):
|
||||
|
|
@ -26,7 +26,7 @@ def infer_newX(model, Y_new, optimize=True, init='L2'):
|
|||
|
||||
return infr_m.X, infr_m
|
||||
|
||||
class InferenceX(ProbabilisticModel):
|
||||
class InferenceX(Model):
|
||||
"""
|
||||
The model class for inference of new X with given new Y. (replacing the "do_test_latent" in Bayesian GPLVM)
|
||||
It is a tiny inference model created from the original GP model. The kernel, likelihood (only Gaussian is supported at the moment)
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
from .posterior import Posterior
|
||||
from ...util.linalg import mdot, jitchol, backsub_both_sides, tdot, dtrtrs, dtrtri, dpotri, dpotrs, symmetrify
|
||||
from ...util import diag
|
||||
from ...core.variational import VariationalPosterior
|
||||
from GPy.core.parameterization.variational import VariationalPosterior
|
||||
import numpy as np
|
||||
from . import LatentFunctionInference
|
||||
log_2_pi = np.log(2*np.pi)
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
from .posterior import Posterior
|
||||
from ...util.linalg import jitchol, backsub_both_sides, tdot, dtrtrs, dtrtri,pdinv
|
||||
from ...util import diag
|
||||
from ...core.variational import VariationalPosterior
|
||||
from GPy.core.parameterization.variational import VariationalPosterior
|
||||
import numpy as np
|
||||
from . import LatentFunctionInference
|
||||
log_2_pi = np.log(2*np.pi)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue