mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-21 14:05:14 +02:00
Fixed conflicts
This commit is contained in:
commit
debdb545dc
3 changed files with 17 additions and 2 deletions
|
|
@ -69,10 +69,17 @@ class GpGrid(GP):
|
||||||
x = b
|
x = b
|
||||||
N = 1
|
N = 1
|
||||||
G = np.zeros(D)
|
G = np.zeros(D)
|
||||||
|
<<<<<<< HEAD
|
||||||
for d in range(D):
|
for d in range(D):
|
||||||
G[d] = len(A[d])
|
G[d] = len(A[d])
|
||||||
N = np.prod(G)
|
N = np.prod(G)
|
||||||
for d in range(D-1, -1, -1):
|
for d in range(D-1, -1, -1):
|
||||||
|
=======
|
||||||
|
for d in xrange(D):
|
||||||
|
G[d] = len(A[d])
|
||||||
|
N = np.prod(G)
|
||||||
|
for d in xrange(D-1, -1, -1):
|
||||||
|
>>>>>>> 1fc93236c46ddd1b7bd7f73ef26dc51af4cd2181
|
||||||
X = np.reshape(x, (G[d], round(N/G[d])), order='F')
|
X = np.reshape(x, (G[d], round(N/G[d])), order='F')
|
||||||
Z = np.dot(A[d], X)
|
Z = np.dot(A[d], X)
|
||||||
Z = Z.T
|
Z = Z.T
|
||||||
|
|
|
||||||
|
|
@ -37,10 +37,17 @@ class GaussianGridInference(LatentFunctionInference):
|
||||||
N = 1
|
N = 1
|
||||||
D = len(A)
|
D = len(A)
|
||||||
G = np.zeros((D,1))
|
G = np.zeros((D,1))
|
||||||
|
<<<<<<< HEAD
|
||||||
for d in range(0, D):
|
for d in range(0, D):
|
||||||
G[d] = len(A[d])
|
G[d] = len(A[d])
|
||||||
N = np.prod(G)
|
N = np.prod(G)
|
||||||
for d in range(D-1, -1, -1):
|
for d in range(D-1, -1, -1):
|
||||||
|
=======
|
||||||
|
for d in xrange(0, D):
|
||||||
|
G[d] = len(A[d])
|
||||||
|
N = np.prod(G)
|
||||||
|
for d in xrange(D-1, -1, -1):
|
||||||
|
>>>>>>> 1fc93236c46ddd1b7bd7f73ef26dc51af4cd2181
|
||||||
X = np.reshape(x, (G[d], round(N/G[d])), order='F')
|
X = np.reshape(x, (G[d], round(N/G[d])), order='F')
|
||||||
Z = np.dot(A[d], X)
|
Z = np.dot(A[d], X)
|
||||||
Z = Z.T
|
Z = Z.T
|
||||||
|
|
@ -109,6 +116,6 @@ class GaussianGridInference(LatentFunctionInference):
|
||||||
dL_dLen = derivs[:D]
|
dL_dLen = derivs[:D]
|
||||||
dL_dVar = derivs[D]
|
dL_dVar = derivs[D]
|
||||||
dL_dThetaL = derivs[D+1]
|
dL_dThetaL = derivs[D+1]
|
||||||
|
|
||||||
return GridPosterior(alpha_kron=alpha_kron, QTs=QTs, Qs=Qs, V_kron=V_kron), \
|
return GridPosterior(alpha_kron=alpha_kron, QTs=QTs, Qs=Qs, V_kron=V_kron), \
|
||||||
log_likelihood, {'dL_dLen':dL_dLen, 'dL_dVar':dL_dVar, 'dL_dthetaL':dL_dThetaL}
|
log_likelihood, {'dL_dLen':dL_dLen, 'dL_dVar':dL_dVar, 'dL_dthetaL':dL_dThetaL}
|
||||||
|
|
|
||||||
|
|
@ -29,6 +29,8 @@ from .src.splitKern import SplitKern,DEtime
|
||||||
from .src.splitKern import DEtime as DiffGenomeKern
|
from .src.splitKern import DEtime as DiffGenomeKern
|
||||||
from .src.spline import Spline
|
from .src.spline import Spline
|
||||||
from .src.basis_funcs import LogisticBasisFuncKernel, LinearSlopeBasisFuncKernel, BasisFuncKernel, ChangePointBasisFuncKernel, DomainKernel
|
from .src.basis_funcs import LogisticBasisFuncKernel, LinearSlopeBasisFuncKernel, BasisFuncKernel, ChangePointBasisFuncKernel, DomainKernel
|
||||||
|
from .src.grid_kerns import GridRBF
|
||||||
|
|
||||||
from .src.sde_matern import sde_Matern32
|
from .src.sde_matern import sde_Matern32
|
||||||
from .src.sde_matern import sde_Matern52
|
from .src.sde_matern import sde_Matern52
|
||||||
from .src.sde_linear import sde_Linear
|
from .src.sde_linear import sde_Linear
|
||||||
|
|
@ -36,4 +38,3 @@ from .src.sde_standard_periodic import sde_StdPeriodic
|
||||||
from .src.sde_static import sde_White, sde_Bias
|
from .src.sde_static import sde_White, sde_Bias
|
||||||
from .src.sde_stationary import sde_RBF,sde_Exponential,sde_RatQuad
|
from .src.sde_stationary import sde_RBF,sde_Exponential,sde_RatQuad
|
||||||
from .src.sde_brownian import sde_Brownian
|
from .src.sde_brownian import sde_Brownian
|
||||||
from .src.grid_kerns import GridRBF
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue