summaryrefslogtreecommitdiff
path: root/docs/source/auto_examples/plot_otda_mapping.py
diff options
context:
space:
mode:
authorRémi Flamary <remi.flamary@gmail.com>2017-09-01 17:55:32 +0200
committerRémi Flamary <remi.flamary@gmail.com>2017-09-01 17:55:32 +0200
commit8ea3504c3bfe9c9440982f8ad0d172a240d54aff (patch)
tree7e3241cf4d81869610feea53f165407767614846 /docs/source/auto_examples/plot_otda_mapping.py
parentfd76b98726b8f22606d93bb24dc539967472f4a0 (diff)
good notebook format generated by sphinx gallery
Diffstat (limited to 'docs/source/auto_examples/plot_otda_mapping.py')
-rw-r--r--docs/source/auto_examples/plot_otda_mapping.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/source/auto_examples/plot_otda_mapping.py b/docs/source/auto_examples/plot_otda_mapping.py
index e78fef4..167c3a1 100644
--- a/docs/source/auto_examples/plot_otda_mapping.py
+++ b/docs/source/auto_examples/plot_otda_mapping.py
@@ -25,7 +25,7 @@ import ot
##############################################################################
# Generate data
-##############################################################################
+# -------------
n_source_samples = 100
n_target_samples = 100
@@ -45,7 +45,7 @@ Xt = Xt + 4
##############################################################################
# Plot data
-##############################################################################
+# ---------
pl.figure(1, (10, 5))
pl.clf()
@@ -57,7 +57,7 @@ pl.title('Source and target distributions')
##############################################################################
# Instantiate the different transport algorithms and fit them
-##############################################################################
+# -----------------------------------------------------------
# MappingTransport with linear kernel
ot_mapping_linear = ot.da.MappingTransport(
@@ -88,7 +88,7 @@ transp_Xs_gaussian_new = ot_mapping_gaussian.transform(Xs=Xs_new)
##############################################################################
# Plot transported samples
-##############################################################################
+# ------------------------
pl.figure(2)
pl.clf()