From 691c97a033e54359e8c933e3bdd34bf5cf40151d Mon Sep 17 00:00:00 2001 From: Leo gautheron Date: Tue, 18 Apr 2017 16:04:03 +0200 Subject: little cleanup sinkhorn --- ot/bregman.py | 4 ---- 1 file changed, 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