mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-09 20:12:38 +02:00
fix xrange
This commit is contained in:
parent
2176922861
commit
07964d776c
2 changed files with 3 additions and 3 deletions
|
|
@ -32,7 +32,7 @@ class PSICOMP_GH(PSICOMP):
|
|||
self.Xs = ObsAr(np.empty((self.degree,)+qX.mean.shape))
|
||||
mu, S = qX.mean.values, qX.variance.values
|
||||
S_sq = np.sqrt(S)
|
||||
for i in xrange(self.degree):
|
||||
for i in range(self.degree):
|
||||
self.Xs[i] = self.locs[i]*S_sq+mu
|
||||
return self.Xs
|
||||
|
||||
|
|
@ -46,7 +46,7 @@ class PSICOMP_GH(PSICOMP):
|
|||
psi0 = np.zeros((N,))
|
||||
psi1 = np.zeros((N,M))
|
||||
psi2 = np.zeros((N,M,M)) if return_psi2_n else np.zeros((M,M))
|
||||
for i in xrange(self.degree):
|
||||
for i in range(self.degree):
|
||||
if self.cache_K:
|
||||
X = Xs[i]
|
||||
else:
|
||||
|
|
|
|||
|
|
@ -361,7 +361,7 @@ class SkewChecker(HessianChecker):
|
|||
|
||||
#Check every block individually (for ease)
|
||||
check_passed = [False]*numeric_hess.shape[2]
|
||||
for block_ind in xrange(numeric_hess.shape[2]):
|
||||
for block_ind in range(numeric_hess.shape[2]):
|
||||
#Unless super_plot is set, just plot the first one
|
||||
p = True if (plot and block_ind == numeric_hess.shape[2]-1) or super_plot else False
|
||||
if verbose:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue