From adbf95ee9a720fa38b5b91d0a9d5c3b22ba0b226 Mon Sep 17 00:00:00 2001 From: RĂ©mi Flamary Date: Mon, 3 Jul 2017 16:33:00 +0200 Subject: update doc --- examples/plot_OT_L1_vs_L2.py | 10 ++++------ examples/plot_optim_OTreg.py | 3 ++- 2 files changed, 6 insertions(+), 7 deletions(-) (limited to 'examples') diff --git a/examples/plot_OT_L1_vs_L2.py b/examples/plot_OT_L1_vs_L2.py index 1ab44a0..9bb92fe 100644 --- a/examples/plot_OT_L1_vs_L2.py +++ b/examples/plot_OT_L1_vs_L2.py @@ -1,10 +1,10 @@ # -*- coding: utf-8 -*- """ -==================================================== -2D Optimal transport between empirical distributions -==================================================== +========================================== +2D Optimal transport for different metrics +========================================== -Stoile the figure idea from: +Stole the figure idea from Fig. 1 and 2 in https://arxiv.org/pdf/1706.07650.pdf @@ -106,5 +106,3 @@ for data in range(2): pl.axis('equal') #pl.legend(loc=0) pl.title('OT sqrt Euclidean') - -#%% sinkhorn diff --git a/examples/plot_optim_OTreg.py b/examples/plot_optim_OTreg.py index c585445..8abb426 100644 --- a/examples/plot_optim_OTreg.py +++ b/examples/plot_optim_OTreg.py @@ -70,4 +70,5 @@ reg2=1e-1 Gel2=ot.optim.gcg(a,b,M,reg1,reg2,f,df,verbose=True) pl.figure(5) -ot.plot.plot1D_mat(a,b,Gel2,'OT entropic + matrix Frob. reg') \ No newline at end of file +ot.plot.plot1D_mat(a,b,Gel2,'OT entropic + matrix Frob. reg') +pl.show() \ No newline at end of file -- cgit v1.2.3