@@ -178,9 +178,9 @@ def cg(a, b, M, reg, f, df, G0=None, numItermax=200, numItermaxEmd=100000,
178
178
numItermaxEmd : int, optional
179
179
Max number of iterations for emd
180
180
stopThr : float, optional
181
- Stop threshol on the relative variation (>0)
181
+ Stop threshold on the relative variation (>0)
182
182
stopThr2 : float, optional
183
- Stop threshol on the absolute variation (>0)
183
+ Stop threshold on the absolute variation (>0)
184
184
verbose : bool, optional
185
185
Print information along iterations
186
186
log : bool, optional
@@ -249,6 +249,8 @@ def cost(G):
249
249
250
250
# line search
251
251
alpha , fc , f_val = solve_linesearch (cost , G , deltaG , Mi , f_val , reg = reg , M = M , Gc = Gc , ** kwargs )
252
+ if alpha is None :
253
+ alpha = 0.0
252
254
253
255
G = G + alpha * deltaG
254
256
@@ -320,9 +322,9 @@ def gcg(a, b, M, reg1, reg2, f, df, G0=None, numItermax=10,
320
322
numInnerItermax : int, optional
321
323
Max number of iterations of Sinkhorn
322
324
stopThr : float, optional
323
- Stop threshol on the relative variation (>0)
325
+ Stop threshold on the relative variation (>0)
324
326
stopThr2 : float, optional
325
- Stop threshol on the absolute variation (>0)
327
+ Stop threshold on the absolute variation (>0)
326
328
verbose : bool, optional
327
329
Print information along iterations
328
330
log : bool, optional
0 commit comments