mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-06-11 15:15:15 +02:00
Making consistent with python 3
This commit is contained in:
parent
3320146eec
commit
1810549b60
2 changed files with 2 additions and 2 deletions
|
|
@ -73,7 +73,7 @@ class GpGrid(GP):
|
|||
G[d] = len(A[d])
|
||||
N = np.prod(G)
|
||||
for d in range(D-1, -1, -1):
|
||||
X = np.reshape(x, (G[d], round(N/G[d])), order='F')
|
||||
X = np.reshape(x, (G[d], np.round(N/G[d])), order='F')
|
||||
Z = np.dot(A[d], X)
|
||||
Z = Z.T
|
||||
x = np.reshape(Z, (-1, 1), order='F')
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ class GaussianGridInference(LatentFunctionInference):
|
|||
G[d] = len(A[d])
|
||||
N = np.prod(G)
|
||||
for d in range(D-1, -1, -1):
|
||||
X = np.reshape(x, (G[d], round(N/G[d])), order='F')
|
||||
X = np.reshape(x, (G[d], np.round(N/G[d])), order='F')
|
||||
Z = np.dot(A[d], X)
|
||||
Z = Z.T
|
||||
x = np.reshape(Z, (-1, 1), order='F')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue