diff options
author | Hicham Janati <hicham.janati@inria.fr> | 2019-10-19 12:05:45 +0200 |
---|---|---|
committer | Hicham Janati <hicham.janati@inria.fr> | 2019-10-19 12:05:45 +0200 |
commit | 2f3741299989ffb105bed986f7a85d567fa6cb6a (patch) | |
tree | abfab0c79396d7bd3beddc74d5419a1862fb7736 /ot/bregman.py | |
parent | e0c935a865a57bc4603144b27f1b58cbfba87760 (diff) |
add weights arg in generic barycenter func
Diffstat (limited to 'ot/bregman.py')
-rw-r--r-- | ot/bregman.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ot/bregman.py b/ot/bregman.py index 2cd832b..ba5c7ba 100644 --- a/ot/bregman.py +++ b/ot/bregman.py @@ -1037,11 +1037,13 @@ def barycenter(A, M, reg, weights=None, method="sinkhorn", numItermax=10000, """ if method.lower() == 'sinkhorn': - return barycenter_sinkhorn(A, M, reg, numItermax=numItermax, + return barycenter_sinkhorn(A, M, reg, weights=weights, + numItermax=numItermax, stopThr=stopThr, verbose=verbose, log=log, **kwargs) elif method.lower() == 'sinkhorn_stabilized': - return barycenter_stabilized(A, M, reg, numItermax=numItermax, + return barycenter_stabilized(A, M, reg, weights=weights, + numItermax=numItermax, stopThr=stopThr, verbose=verbose, log=log, **kwargs) else: |