fixed up symmetric kern

This commit is contained in:
James Hensman 2013-11-12 14:45:08 +00:00
parent 5fd031fd63
commit 73006c6eda
2 changed files with 2 additions and 2 deletions

View file

@ -464,7 +464,7 @@ def symmetric(k):
This constructor builds a covariance function of this form from the initial kernel
"""
k_ = k.copy()
k_.parts = [symmetric.Symmetric(p) for p in k.parts]
k_.parts = [parts.symmetric.Symmetric(p) for p in k.parts]
return k_
def coregionalize(output_dim,rank=1, W=None, kappa=None):

View file

@ -56,7 +56,7 @@ class Symmetric(Kernpart):
AX = np.dot(X,self.transform)
if X2 is None:
X2 = X
ZX2 = AX
AX2 = AX
else:
AX2 = np.dot(X2, self.transform)
self.k.dK_dtheta(dL_dK,X,X2,target)