summaryrefslogtreecommitdiff
path: root/ot/da.py
diff options
context:
space:
mode:
authorRĂ©mi Flamary <remi.flamary@gmail.com>2017-07-26 15:25:53 +0200
committerGitHub <noreply@github.com>2017-07-26 15:25:53 +0200
commit7638d019b43e52d17600cac653939e7cd807478c (patch)
treea77441ddf844d953a3e797a3fab2a1ee3b85bf34 /ot/da.py
parent1cf304cee298e2752ce29c83e5201f593722c3af (diff)
parent838550ead9cc8a66d9b9c1212c5dda2457dc59a5 (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.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/ot/da.py b/ot/da.py
index 5039fbd..4f9bce5 100644
--- a/ot/da.py
+++ b/ot/da.py
@@ -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