diff options
author | Rémi Flamary <remi.flamary@gmail.com> | 2016-11-04 10:10:44 +0100 |
---|---|---|
committer | Rémi Flamary <remi.flamary@gmail.com> | 2016-11-04 10:10:44 +0100 |
commit | 405f352dc562eb17a2d6d7ca17c2ce14b19f2668 (patch) | |
tree | fff693f369f0e65eaa800a4b98a3c1da90db8f9e /ot/utils.py | |
parent | 0ea30e9ca2398caeb853662012b09148a25cffff (diff) |
add mapping estimation with kernels works!
Diffstat (limited to 'ot/utils.py')
-rw-r--r-- | ot/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
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): |