Making consistent with python 3

This commit is contained in:
kcutajar 2016-05-10 01:56:59 +02:00
parent 3320146eec
commit 1810549b60
2 changed files with 2 additions and 2 deletions

View file

@ -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')

View file

@ -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')