From 8ea3504c3bfe9c9440982f8ad0d172a240d54aff Mon Sep 17 00:00:00 2001 From: RĂ©mi Flamary Date: Fri, 1 Sep 2017 17:55:32 +0200 Subject: good notebook format generated by sphinx gallery --- docs/source/auto_examples/plot_otda_mapping.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'docs/source/auto_examples/plot_otda_mapping.py') 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() -- cgit v1.2.3