diff --git a/spearmint/kernels/kernel_utils.py b/spearmint/kernels/kernel_utils.py index c84248d..956d936 100755 --- a/spearmint/kernels/kernel_utils.py +++ b/spearmint/kernels/kernel_utils.py @@ -210,33 +210,7 @@ def dist2(ls, x1, x2=None): def grad_dist2(ls, x1, x2=None): if x2 is None: x2 = x1 - - # Rescale. - x1 = x1 / ls - x2 = x2 / ls - - N = x1.shape[0] - M = x2.shape[0] - D = x1.shape[1] - gX = np.zeros((x1.shape[0],x2.shape[0],x1.shape[1])) - - code = \ - """ - for (int i=0; i