summaryrefslogtreecommitdiff
path: root/ot/bregman.py
diff options
context:
space:
mode:
Diffstat (limited to 'ot/bregman.py')
-rw-r--r--ot/bregman.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ot/bregman.py b/ot/bregman.py
index e46506b..8362dc4 100644
--- a/ot/bregman.py
+++ b/ot/bregman.py
@@ -136,7 +136,7 @@ def barycenter(A,M,reg, weights=None, numItermax = 1000, tol_error=1e-4,log=dict
log['all_err'].append(err)
log['niter']=cpt
- return geometricBar(weights,UKv)
+ return geometricBar(weights,UKv),log
def unmixBregman(distrib,D,M,M0,h0,reg,reg0,alpha,numItermax = 1000, tol_error=1e-3,log=dict()):
@@ -181,4 +181,4 @@ def unmixBregman(distrib,D,M,M0,h0,reg,reg0,alpha,numItermax = 1000, tol_error=1
log['niter']=cpt
- return np.sum(K0,axis=1)
+ return np.sum(K0,axis=1),log