Skip to content

Commit a919f96

Browse files
author
Hicham Janati
committed
same for unbalanced
1 parent 2f37412 commit a919f96

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ot/unbalanced.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1002,19 +1002,22 @@ def barycenter_unbalanced(A, M, reg, reg_m, method="sinkhorn", weights=None,
10021002

10031003
if method.lower() == 'sinkhorn':
10041004
return barycenter_unbalanced_sinkhorn(A, M, reg, reg_m,
1005+
weights=weights,
10051006
numItermax=numItermax,
10061007
stopThr=stopThr, verbose=verbose,
10071008
log=log, **kwargs)
10081009

10091010
elif method.lower() == 'sinkhorn_stabilized':
10101011
return barycenter_unbalanced_stabilized(A, M, reg, reg_m,
1012+
weights=weights,
10111013
numItermax=numItermax,
10121014
stopThr=stopThr,
10131015
verbose=verbose,
10141016
log=log, **kwargs)
10151017
elif method.lower() in ['sinkhorn_reg_scaling']:
10161018
warnings.warn('Method not implemented yet. Using classic Sinkhorn Knopp')
10171019
return barycenter_unbalanced(A, M, reg, reg_m,
1020+
weights=weights,
10181021
numItermax=numItermax,
10191022
stopThr=stopThr, verbose=verbose,
10201023
log=log, **kwargs)

0 commit comments

Comments
 (0)