diff options
author | Rémi Flamary <remi.flamary@gmail.com> | 2017-07-03 16:33:00 +0200 |
---|---|---|
committer | Rémi Flamary <remi.flamary@gmail.com> | 2017-07-03 16:33:00 +0200 |
commit | adbf95ee9a720fa38b5b91d0a9d5c3b22ba0b226 (patch) | |
tree | 834a6934ab09c4daec751c220ba847e8be61bb4b /examples | |
parent | f639518e9b96c5904122e62e024ed4ae369ceb33 (diff) |
update doc
Diffstat (limited to 'examples')
-rw-r--r-- | examples/plot_OT_L1_vs_L2.py | 10 | ||||
-rw-r--r-- | examples/plot_optim_OTreg.py | 3 |
2 files changed, 6 insertions, 7 deletions
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 |