summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Luevano Alvarado <55825613+luevano@users.noreply.github.com>2020-03-12 14:10:21 -0700
committerDavid Luevano Alvarado <55825613+luevano@users.noreply.github.com>2020-03-12 14:10:21 -0700
commitda42889f9e3040c329dc2864ed06f71526032818 (patch)
tree2114a266e5d6e5bfd1b18bf792a873cc3e082d10
parentfe25c01adea8fd50901ae5bda48993d47152b941 (diff)
Fix bug
-rw-r--r--ml_exp/kernels.py4
1 files 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))