Skip to content

Commit 8d47d32

Browse files
committed
Bugfix (python2 in unbalanced)
1 parent f7fbb57 commit 8d47d32

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

ot/unbalanced.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
# Author: Hicham Janati <[email protected]>
77
# License: MIT License
88

9+
from __future__ import division
910
import warnings
1011
import numpy as np
1112
# from .utils import unif, dist
@@ -287,12 +288,12 @@ def sinkhorn_knopp_unbalanced(a, b, M, reg, alpha, numItermax=1000,
287288
--------
288289
289290
>>> import ot
290-
>>> a=[.5, .15]
291+
>>> a=[.5, .5]
291292
>>> b=[.5, .5]
292293
>>> M=[[0., 1.],[1., 0.]]
293294
>>> ot.unbalanced.sinkhorn_knopp_unbalanced(a, b, M, 1., 1.)
294-
array([[0.52761554, 0.22392482],
295-
[0.10286295, 0.32257641]])
295+
array([[0.51122823, 0.18807035],
296+
[0.18807035, 0.51122823]])
296297
297298
References
298299
----------

0 commit comments

Comments
 (0)