From fd76b98726b8f22606d93bb24dc539967472f4a0 Mon Sep 17 00:00:00 2001 From: RĂ©mi Flamary Date: Fri, 1 Sep 2017 17:38:16 +0200 Subject: titlke for notebooks --- examples/plot_otda_classes.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'examples/plot_otda_classes.py') diff --git a/examples/plot_otda_classes.py b/examples/plot_otda_classes.py index ec57a37..b14c11a 100644 --- a/examples/plot_otda_classes.py +++ b/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'} -- cgit v1.2.3