diff options
author | RĂ©mi Flamary <remi.flamary@gmail.com> | 2017-07-26 15:25:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-26 15:25:53 +0200 |
commit | 7638d019b43e52d17600cac653939e7cd807478c (patch) | |
tree | a77441ddf844d953a3e797a3fab2a1ee3b85bf34 /ot/da.py | |
parent | 1cf304cee298e2752ce29c83e5201f593722c3af (diff) | |
parent | 838550ead9cc8a66d9b9c1212c5dda2457dc59a5 (diff) |
Merge pull request #19 from rflamary/pytest
Pytest with 89% coverage
Fixes #19
Diffstat (limited to 'ot/da.py')
-rw-r--r-- | ot/da.py | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -3,6 +3,12 @@ Domain adaptation with optimal transport """ +# Author: Remi Flamary <remi.flamary@unice.fr> +# Nicolas Courty <ncourty@irisa.fr> +# Michael Perrot <michael.perrot@univ-st-etienne.fr> +# +# License: MIT License + import numpy as np from .bregman import sinkhorn from .lp import emd @@ -472,7 +478,7 @@ def joint_OT_mapping_kernel(xs, xt, mu=1, eta=0.001, kerneltype='gaussian', sigm Kp[:ns, :ns] = K # ls regu - #K0 = K1.T.dot(K1)+eta*I + # K0 = K1.T.dot(K1)+eta*I # Kreg=I # RKHS regul @@ -484,7 +490,7 @@ def joint_OT_mapping_kernel(xs, xt, mu=1, eta=0.001, kerneltype='gaussian', sigm I = np.eye(ns) # ls regul - #K0 = K1.T.dot(K1)+eta*I + # K0 = K1.T.dot(K1)+eta*I # Kreg=I # proper kernel ridge |