Skip to content

Commit f63712f

Browse files
Kilian FatrasKilian Fatras
authored andcommitted
call ot.unif and ot.dist
1 parent d754a64 commit f63712f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ot/bregman.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1375,9 +1375,9 @@ def empirical_sinkhorn(X_s, X_t, reg, a=None, b=None, metric='sqeuclidean', numI
13751375
'''
13761376

13771377
if a is None:
1378-
a = utils.unif(np.shape(X_s)[0])
1378+
a = ot.unif(np.shape(X_s)[0])
13791379
if b is None:
1380-
b = utils.unif(np.shape(X_t)[0])
1380+
b = ot.unif(np.shape(X_t)[0])
13811381

13821382
M = ot.dist(X_s, X_t, metric=metric)
13831383

@@ -1465,9 +1465,9 @@ def empirical_sinkhorn2(X_s, X_t, reg, a=None, b=None, metric='sqeuclidean', num
14651465
'''
14661466

14671467
if a is None:
1468-
a = utils.unif(np.shape(X_s)[0])
1468+
a = ot.unif(np.shape(X_s)[0])
14691469
if b is None:
1470-
b = utils.unif(np.shape(X_t)[0])
1470+
b = ot.unif(np.shape(X_t)[0])
14711471

14721472
M = ot.dist(X_s, X_t, metric=metric)
14731473

0 commit comments

Comments
 (0)