summaryrefslogtreecommitdiff
path: root/examples/plot_WDA.py
diff options
context:
space:
mode:
authorRémi Flamary <remi.flamary@gmail.com>2017-09-01 17:38:16 +0200
committerRémi Flamary <remi.flamary@gmail.com>2017-09-01 17:38:16 +0200
commitfd76b98726b8f22606d93bb24dc539967472f4a0 (patch)
tree042f0664291eea89d4a737ada2d7b045fc338a8f /examples/plot_WDA.py
parente800103299d79cf462c89f34647e7741014c5571 (diff)
titlke for notebooks
Diffstat (limited to 'examples/plot_WDA.py')
-rw-r--r--examples/plot_WDA.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/plot_WDA.py b/examples/plot_WDA.py
index 5928621..93cc237 100644
--- a/examples/plot_WDA.py
+++ b/examples/plot_WDA.py
@@ -24,7 +24,7 @@ from ot.dr import wda, fda
##############################################################################
# Generate data
-##############################################################################
+# -------------
#%% parameters
@@ -51,7 +51,7 @@ xt = np.hstack((xt, np.random.randn(n, nbnoise)))
##############################################################################
# Plot data
-##############################################################################
+# ---------
#%% plot samples
pl.figure(1, figsize=(6.4, 3.5))
@@ -69,7 +69,7 @@ pl.tight_layout()
##############################################################################
# Compute Fisher Discriminant Analysis
-##############################################################################
+# ------------------------------------
#%% Compute FDA
p = 2
@@ -78,7 +78,7 @@ Pfda, projfda = fda(xs, ys, p)
##############################################################################
# Compute Wasserstein Discriminant Analysis
-##############################################################################
+# -----------------------------------------
#%% Compute WDA
p = 2
@@ -91,7 +91,7 @@ Pwda, projwda = wda(xs, ys, p, reg, k, maxiter=maxiter)
##############################################################################
# Plot 2D projections
-##############################################################################
+# -------------------
#%% plot samples