From 405f352dc562eb17a2d6d7ca17c2ce14b19f2668 Mon Sep 17 00:00:00 2001 From: RĂ©mi Flamary Date: Fri, 4 Nov 2016 10:10:44 +0100 Subject: add mapping estimation with kernels works! --- ot/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ot/utils.py') diff --git a/ot/utils.py b/ot/utils.py index 47fe77f..d3df8fa 100644 --- a/ot/utils.py +++ b/ot/utils.py @@ -9,7 +9,7 @@ from scipy.spatial.distance import cdist def kernel(x1,x2,method='gaussian',sigma=1,**kwargs): """Compute kernel matrix""" if method.lower() in ['gaussian','gauss','rbf']: - K=np.exp(dist(x1,x2)/(2*sigma**2)) + K=np.exp(-dist(x1,x2)/(2*sigma**2)) return K def unif(n): -- cgit v1.2.3