diff options
author | Rémi Flamary <remi.flamary@gmail.com> | 2017-09-01 17:38:16 +0200 |
---|---|---|
committer | Rémi Flamary <remi.flamary@gmail.com> | 2017-09-01 17:38:16 +0200 |
commit | fd76b98726b8f22606d93bb24dc539967472f4a0 (patch) | |
tree | 042f0664291eea89d4a737ada2d7b045fc338a8f /examples/plot_OT_1D.py | |
parent | e800103299d79cf462c89f34647e7741014c5571 (diff) |
titlke for notebooks
Diffstat (limited to 'examples/plot_OT_1D.py')
-rw-r--r-- | examples/plot_OT_1D.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/examples/plot_OT_1D.py b/examples/plot_OT_1D.py index b6ffa5f..719058f 100644 --- a/examples/plot_OT_1D.py +++ b/examples/plot_OT_1D.py @@ -20,7 +20,7 @@ from ot.datasets import get_1D_gauss as gauss ############################################################################## # Generate data -# ############# +# ------------- #%% parameters @@ -41,7 +41,7 @@ M /= M.max() ############################################################################## # Plot distributions and loss matrix -################################### +# ---------------------------------- #%% plot the distributions @@ -57,7 +57,8 @@ ot.plot.plot1D_mat(a, b, M, 'Cost matrix M') ############################################################################## # Solve EMD -############################################################################## +# --------- + #%% EMD @@ -68,7 +69,8 @@ ot.plot.plot1D_mat(a, b, G0, 'OT matrix G0') ############################################################################## # Solve Sinkhorn -############################################################################## +# -------------- + #%% Sinkhorn |