summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorRémi Flamary <remi.flamary@gmail.com>2017-01-05 13:43:44 +0100
committerRémi Flamary <remi.flamary@gmail.com>2017-01-05 13:43:44 +0100
commitb90ea88f8f0cf32aef102277588f80042c6cfcaa (patch)
tree114a395af87295cc660bb4067e16197432c50de0 /examples
parentbb6020dd69933735a6cf821eabcbedca92f2ecb4 (diff)
update demo
Diffstat (limited to 'examples')
-rw-r--r--examples/plot_OT_2D_samples.py2
-rw-r--r--examples/plot_optim_OTreg.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/plot_OT_2D_samples.py b/examples/plot_OT_2D_samples.py
index 6c39ad4..3b95083 100644
--- a/examples/plot_OT_2D_samples.py
+++ b/examples/plot_OT_2D_samples.py
@@ -13,7 +13,7 @@ import ot
#%% parameters and data generation
-n=20 # nb samples
+n=2 # nb samples
mu_s=np.array([0,0])
cov_s=np.array([[1,0],[0,1]])
diff --git a/examples/plot_optim_OTreg.py b/examples/plot_optim_OTreg.py
index 3c4d3f4..c585445 100644
--- a/examples/plot_optim_OTreg.py
+++ b/examples/plot_optim_OTreg.py
@@ -64,7 +64,7 @@ ot.plot.plot1D_mat(a,b,Ge,'OT matrix Entrop. reg')
def f(G): return 0.5*np.sum(G**2)
def df(G): return G
-reg1=1e-1
+reg1=1e-3
reg2=1e-1
Gel2=ot.optim.gcg(a,b,M,reg1,reg2,f,df,verbose=True)