diff options
Diffstat (limited to 'ml_exp/kernels.py')
-rw-r--r-- | ml_exp/kernels.py | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/ml_exp/kernels.py b/ml_exp/kernels.py index 26ff0d77b..c203af30e 100644 --- a/ml_exp/kernels.py +++ b/ml_exp/kernels.py @@ -73,13 +73,4 @@ def gaussian_kernel(X1, else: norm = np.linalg.norm(X2 - X1[i], axis=-1) K[i, :] = np.exp(i_sigma * np.square(norm)) - - # Old way of calculating the kernel (numba support). - """ - for i, x1 in enumerate(X1): - for j, x2 in enumerate(X2): - f_norm = np.linalg.norm(x2 - x1) - K[i, j] = math.exp(i_sigma * f_norm**2) - """ - return K |