summaryrefslogtreecommitdiff
path: root/ot/bregman.py
diff options
context:
space:
mode:
authorLeo gautheron <gautheron@iv-cm-359.creatis.insa-lyon.fr>2017-04-18 16:04:03 +0200
committerLeo gautheron <gautheron@iv-cm-359.creatis.insa-lyon.fr>2017-04-18 16:04:03 +0200
commit691c97a033e54359e8c933e3bdd34bf5cf40151d (patch)
tree9c39ed465aa358e97ae2991187d01347aac6f0c7 /ot/bregman.py
parentebbd1868ba03e46f029ed485e949f4936eded85c (diff)
little cleanup sinkhorn
Diffstat (limited to 'ot/bregman.py')
-rw-r--r--ot/bregman.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/ot/bregman.py b/ot/bregman.py
index 1deccce..0453f14 100644
--- a/ot/bregman.py
+++ b/ot/bregman.py
@@ -94,8 +94,6 @@ def sinkhorn(a,b, M, reg, numItermax = 1000, stopThr=1e-9, verbose=False, log=Fa
Nini = len(a)
Nfin = len(b)
-
- cpt = 0
if log:
log={'err':[]}
@@ -109,8 +107,6 @@ def sinkhorn(a,b, M, reg, numItermax = 1000, stopThr=1e-9, verbose=False, log=Fa
#print(np.min(K))
Kp = (1/a).reshape(-1, 1) * K
-
- transp = K
cpt = 0
err=1
while (err>stopThr and cpt<numItermax):