summaryrefslogtreecommitdiff
path: root/docs/source/auto_examples/plot_otda_classes.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_classes.py
parentfd76b98726b8f22606d93bb24dc539967472f4a0 (diff)
good notebook format generated by sphinx gallery
Diffstat (limited to 'docs/source/auto_examples/plot_otda_classes.py')
-rw-r--r--docs/source/auto_examples/plot_otda_classes.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/source/auto_examples/plot_otda_classes.py b/docs/source/auto_examples/plot_otda_classes.py
index ec57a37..b14c11a 100644
--- a/docs/source/auto_examples/plot_otda_classes.py
+++ b/docs/source/auto_examples/plot_otda_classes.py
@@ -19,8 +19,8 @@ import ot
##############################################################################
-# generate data
-##############################################################################
+# Generate data
+# -------------
n_source_samples = 150
n_target_samples = 150
@@ -31,7 +31,7 @@ Xt, yt = ot.datasets.get_data_classif('3gauss2', n_target_samples)
##############################################################################
# Instantiate the different transport algorithms and fit them
-##############################################################################
+# -----------------------------------------------------------
# EMD Transport
ot_emd = ot.da.EMDTransport()
@@ -59,7 +59,7 @@ transp_Xs_l1l2 = ot_l1l2.transform(Xs=Xs)
##############################################################################
# Fig 1 : plots source and target samples
-##############################################################################
+# ---------------------------------------
pl.figure(1, figsize=(10, 5))
pl.subplot(1, 2, 1)
@@ -80,7 +80,7 @@ pl.tight_layout()
##############################################################################
# Fig 2 : plot optimal couplings and transported samples
-##############################################################################
+# ------------------------------------------------------
param_img = {'interpolation': 'nearest', 'cmap': 'spectral'}