Skip to content

Commit 530eb04

Browse files
Nicolas CourtyNicolas Courty
authored andcommitted
da with GL
1 parent 22036bd commit 530eb04

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/demo_OTDA_classes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858

5959
# True Group lasso regularization
6060
reg=1e-1
61-
eta=1e1
61+
eta=1e0
6262
da_l1l2=ot.da.OTDA_l1l2()
6363
da_l1l2.fit(xs,ys,xt,reg=reg,eta=eta,numItermax=20,verbose=True)
6464
xstgl=da_l1l2.interp()

ot/optim.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ def cost(G):
304304
deltaG=Gc-G
305305

306306
# line search
307-
dcost=Mi+reg1*np.sum(deltaG*(1+np.log(G))) #??
307+
dcost=Mi+reg1*(1+np.log(G)) #??
308308
alpha,fc,f_val = line_search_armijo(cost,G,deltaG,dcost,f_val)
309309

310310
G=G+alpha*deltaG

0 commit comments

Comments
 (0)