mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-18 13:55:14 +02:00
removed ipdb statement from kern, cleaned up some nasty whitespace
This commit is contained in:
parent
6673a8ae02
commit
db9e5314e4
1 changed files with 21 additions and 23 deletions
|
|
@ -492,7 +492,6 @@ class kern(Parameterized):
|
||||||
eK2 = psi12.reshape(N, M, M)
|
eK2 = psi12.reshape(N, M, M)
|
||||||
crossterms = eK2 * (psi11[:, :, None] + psi11[:, None, :])
|
crossterms = eK2 * (psi11[:, :, None] + psi11[:, None, :])
|
||||||
target += crossterms
|
target += crossterms
|
||||||
#import ipdb;ipdb.set_trace()
|
|
||||||
else:
|
else:
|
||||||
raise NotImplementedError, "psi2 cannot be computed for this kernel"
|
raise NotImplementedError, "psi2 cannot be computed for this kernel"
|
||||||
return target
|
return target
|
||||||
|
|
@ -863,7 +862,6 @@ def kern_test(kern, X=None, X2=None, output_ind=None, verbose=False, X_positive=
|
||||||
if output_ind is not None:
|
if output_ind is not None:
|
||||||
assert(output_ind<kern.input_dim)
|
assert(output_ind<kern.input_dim)
|
||||||
X[:, output_ind] = np.random.randint(low=0,high=kern.parts[0].output_dim, size=X.shape[0])
|
X[:, output_ind] = np.random.randint(low=0,high=kern.parts[0].output_dim, size=X.shape[0])
|
||||||
import ipdb; ipdb.set_trace()
|
|
||||||
if X2==None:
|
if X2==None:
|
||||||
X2 = np.random.randn(20, kern.input_dim)
|
X2 = np.random.randn(20, kern.input_dim)
|
||||||
if X_positive:
|
if X_positive:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue