From da42889f9e3040c329dc2864ed06f71526032818 Mon Sep 17 00:00:00 2001 From: David Luevano Alvarado <55825613+luevano@users.noreply.github.com> Date: Thu, 12 Mar 2020 14:10:21 -0700 Subject: Fix bug --- ml_exp/kernels.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ml_exp/kernels.py b/ml_exp/kernels.py index 2b40ae0b1..23c72475f 100644 --- a/ml_exp/kernels.py +++ b/ml_exp/kernels.py @@ -97,9 +97,9 @@ def laplauss_kernel(X1, norm = np.linalg.norm(X2 - X1[i], axis=(1, 2)) else: norm = np.linalg.norm(X2 - X1[i], axis=-1) - if laplauuss == 'gauss': + if laplauss == 'gauss': K[i, :] = np.exp(i_sigma * np.square(norm)) - elif laplauce == 'laplace': + elif laplauss == 'laplace': K[i, :] = np.exp(i_sigma * norm) else: K[i, :] = np.exp(i_sigma * np.square(norm)) -- cgit v1.2.3-54-g00ecf