Skip to content

Commit

Permalink
small random perturbations in kernel tests helps with the symmetry gr…
Browse files Browse the repository at this point in the history
…adcheck bug
  • Loading branch information
jameshensman committed Nov 21, 2014
1 parent d762059 commit 4fd0543
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
10 changes: 0 additions & 10 deletions GPy/coding_style_guide.txt

This file was deleted.

2 changes: 1 addition & 1 deletion GPy/testing/kernel_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ class Kern_check_model(GPy.core.Model):
"""
def __init__(self, kernel=None, dL_dK=None, X=None, X2=None):
GPy.core.Model.__init__(self, 'kernel_test_model')
np.random.seed()
if kernel==None:
kernel = GPy.kern.RBF(1)
kernel.randomize(loc=1, scale=0.1)
if X is None:
X = np.random.randn(20, kernel.input_dim)
if dL_dK is None:
Expand Down

0 comments on commit 4fd0543

Please sign in to comment.