summaryrefslogtreecommitdiff
path: root/ot/bregman.py
diff options
context:
space:
mode:
authorRĂ©mi Flamary <remi.flamary@gmail.com>2020-06-22 11:07:33 +0200
committerGitHub <noreply@github.com>2020-06-22 11:07:33 +0200
commitb2eae39e8a422b18ecc3fadc08bc909ee1dae55f (patch)
treeecc00286ffdb87401abcbeaf7de8997ead79e9fc /ot/bregman.py
parent5af645299477cf3595e65ca4d1750d13c27def1d (diff)
[WIP] Update bregman.py : barycenter_sinkhorn function (#195)
* Update bregman.py * correct call to function Co-authored-by: FerdinandGns <56926826+FerdinandGns@users.noreply.github.com>
Diffstat (limited to 'ot/bregman.py')
-rw-r--r--ot/bregman.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ot/bregman.py b/ot/bregman.py
index f1f8437..457bdd4 100644
--- a/ot/bregman.py
+++ b/ot/bregman.py
@@ -1116,7 +1116,7 @@ def barycenter_sinkhorn(A, M, reg, weights=None, numItermax=1000,
err = 1
UKv = np.dot(K, np.divide(A.T, np.sum(K, axis=0)).T)
- u = (geometricMean(UKv) / UKv.T).T
+ u = (geometricBar(weights, UKv) / UKv.T).T
while (err > stopThr and cpt < numItermax):
cpt = cpt + 1