diff options
author | David Luevano Alvarado <55825613+luevano@users.noreply.github.com> | 2020-03-03 23:44:51 -0700 |
---|---|---|
committer | David Luevano Alvarado <55825613+luevano@users.noreply.github.com> | 2020-03-03 23:44:51 -0700 |
commit | f4f0cfe0510def48736c4f9f0a4656bf5fb89200 (patch) | |
tree | 1490952bde38687c8408ee118e2defe73df1cac6 /ml_exp/kernels.py | |
parent | 52383ddeb87312708eeb1da765b175fb603f2802 (diff) |
Fix normal ml error
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 |