From 1810549b602c4236ab76c78252d36cbdcab94659 Mon Sep 17 00:00:00 2001 From: kcutajar Date: Tue, 10 May 2016 01:56:59 +0200 Subject: [PATCH] Making consistent with python 3 --- GPy/core/gp_grid.py | 2 +- .../latent_function_inference/gaussian_grid_inference.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/GPy/core/gp_grid.py b/GPy/core/gp_grid.py index 89b6cdec..bdb1b614 100644 --- a/GPy/core/gp_grid.py +++ b/GPy/core/gp_grid.py @@ -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') diff --git a/GPy/inference/latent_function_inference/gaussian_grid_inference.py b/GPy/inference/latent_function_inference/gaussian_grid_inference.py index 04337e04..abdd78a3 100644 --- a/GPy/inference/latent_function_inference/gaussian_grid_inference.py +++ b/GPy/inference/latent_function_inference/gaussian_grid_inference.py @@ -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')