summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorSlasnista <stan.chambon@gmail.com>2017-08-25 15:15:52 +0200
committerSlasnista <stan.chambon@gmail.com>2017-08-25 15:15:52 +0200
commitf80693b545ac40817cb95eb31260fe7598514b96 (patch)
tree694a154e461eafeee0dc731a78f2e6e2867a0187 /examples
parent74ca2d77bca479785c581d2f48d87628d5c1444d (diff)
small corrections for examples
Diffstat (limited to 'examples')
-rw-r--r--examples/da/plot_otda_classes.py2
-rw-r--r--examples/da/plot_otda_color_images.py2
-rw-r--r--examples/da/plot_otda_d2.py2
-rw-r--r--examples/da/plot_otda_mapping.py2
-rw-r--r--examples/da/plot_otda_mapping_colors_images.py6
5 files changed, 7 insertions, 7 deletions
diff --git a/examples/da/plot_otda_classes.py b/examples/da/plot_otda_classes.py
index 1bfe2bb..e5c82fb 100644
--- a/examples/da/plot_otda_classes.py
+++ b/examples/da/plot_otda_classes.py
@@ -10,7 +10,7 @@ approaches currently supported in POT.
"""
# Authors: Remi Flamary <remi.flamary@unice.fr>
-# Stanilslas Chambon <stan.chambon@gmail.com>
+# Stanislas Chambon <stan.chambon@gmail.com>
#
# License: MIT License
diff --git a/examples/da/plot_otda_color_images.py b/examples/da/plot_otda_color_images.py
index a46ac29..bca7350 100644
--- a/examples/da/plot_otda_color_images.py
+++ b/examples/da/plot_otda_color_images.py
@@ -13,7 +13,7 @@ SIAM Journal on Imaging Sciences, 7(3), 1853-1882.
"""
# Authors: Remi Flamary <remi.flamary@unice.fr>
-# Stanilslas Chambon <stan.chambon@gmail.com>
+# Stanislas Chambon <stan.chambon@gmail.com>
#
# License: MIT License
diff --git a/examples/da/plot_otda_d2.py b/examples/da/plot_otda_d2.py
index 78c0372..1d2192f 100644
--- a/examples/da/plot_otda_d2.py
+++ b/examples/da/plot_otda_d2.py
@@ -14,7 +14,7 @@ of what the transport methods are doing.
"""
# Authors: Remi Flamary <remi.flamary@unice.fr>
-# Stanilslas Chambon <stan.chambon@gmail.com>
+# Stanislas Chambon <stan.chambon@gmail.com>
#
# License: MIT License
diff --git a/examples/da/plot_otda_mapping.py b/examples/da/plot_otda_mapping.py
index ed234f5..6d83507 100644
--- a/examples/da/plot_otda_mapping.py
+++ b/examples/da/plot_otda_mapping.py
@@ -14,7 +14,7 @@ a linear or a kernelized mapping as introduced in [8]
"""
# Authors: Remi Flamary <remi.flamary@unice.fr>
-# Stanilslas Chambon <stan.chambon@gmail.com>
+# Stanislas Chambon <stan.chambon@gmail.com>
#
# License: MIT License
diff --git a/examples/da/plot_otda_mapping_colors_images.py b/examples/da/plot_otda_mapping_colors_images.py
index 56b5a6f..05d9046 100644
--- a/examples/da/plot_otda_mapping_colors_images.py
+++ b/examples/da/plot_otda_mapping_colors_images.py
@@ -14,7 +14,7 @@ OT for domain adaptation with image color adaptation [6] with mapping estimation
"""
# Authors: Remi Flamary <remi.flamary@unice.fr>
-# Stanilslas Chambon <stan.chambon@gmail.com>
+# Stanislas Chambon <stan.chambon@gmail.com>
#
# License: MIT License
@@ -82,14 +82,14 @@ ot_mapping_linear = ot.da.MappingTransport(
mu=1e0, eta=1e-8, bias=True, max_iter=20, verbose=True)
ot_mapping_linear.fit(Xs=Xs, Xt=Xt)
-X1tl = ot_mapping_linear.transform(X1)
+X1tl = ot_mapping_linear.transform(Xs=X1)
Image_mapping_linear = minmax(mat2im(X1tl, I1.shape))
ot_mapping_gaussian = ot.da.MappingTransport(
mu=1e0, eta=1e-2, sigma=1, bias=False, max_iter=10, verbose=True)
ot_mapping_gaussian.fit(Xs=Xs, Xt=Xt)
-X1tn = ot_mapping_gaussian.transform(X1) # use the estimated mapping
+X1tn = ot_mapping_gaussian.transform(Xs=X1) # use the estimated mapping
Image_mapping_gaussian = minmax(mat2im(X1tn, I1.shape))
##############################################################################