mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-21 14:05:14 +02:00
Merge branch 'params' of github.com:SheffieldML/GPy into params
This commit is contained in:
commit
82e3252012
11 changed files with 64 additions and 80 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue