Merge branch 'params' of github.com:SheffieldML/GPy into params

This commit is contained in:
James Hensman 2014-02-26 15:47:05 +00:00
commit 82e3252012
11 changed files with 64 additions and 80 deletions

View file

@ -6,6 +6,7 @@ import numpy as np
from scipy import weave
from ...util.misc import param_to_array
from stationary import Stationary
from GPy.util.caching import Cache_this
class RBF(Stationary):
"""
@ -166,7 +167,7 @@ class RBF(Stationary):
return target
#@cache_this TODO
@Cache_this(limit=1)
def _psi1computations(self, Z, vp):
mu, S = vp.mean, vp.variance
l2 = self.lengthscale **2
@ -184,7 +185,7 @@ class RBF(Stationary):
Zdist = 0.5 * (Z[:, None, :] - Z[None, :, :]) # M,M,Q
return Zhat, Zdist
#@cache_this TODO
@Cache_this(limit=1)
def _psi2computations(self, Z, vp):
mu, S = vp.mean, vp.variance