Skip to content

Commit 54f0b47

Browse files
committed
update documentation for barycenter function
1 parent 3f14822 commit 54f0b47

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

ot/bregman.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -839,13 +839,13 @@ def barycenter(A, M, reg, weights=None, numItermax=1000,
839839
Parameters
840840
----------
841841
A : np.ndarray (d,n)
842-
n training distributions of size d
842+
n training distributions a_i of size d
843843
M : np.ndarray (d,d)
844844
loss matrix for OT
845845
reg : float
846846
Regularization term >0
847847
weights : np.ndarray (n,)
848-
Weights of each histogram i_i on the simplex
848+
Weights of each histogram a_i on the simplex (barycentric coodinates)
849849
numItermax : int, optional
850850
Max number of iterations
851851
stopThr : float, optional

ot/lp/cvx.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,13 @@ def barycenter(A, M, weights=None, verbose=False, log=False, solver='interior-po
4646
Parameters
4747
----------
4848
A : np.ndarray (d,n)
49-
n training distributions of size d
49+
n training distributions a_i of size d
5050
M : np.ndarray (d,d)
5151
loss matrix for OT
5252
reg : float
5353
Regularization term >0
5454
weights : np.ndarray (n,)
55-
Weights of each histogram i_i on the simplex
55+
Weights of each histogram a_i on the simplex (barycentric coodinates)
5656
verbose : bool, optional
5757
Print information along iterations
5858
log : bool, optional

0 commit comments

Comments
 (0)