diff options
author | Slasnista <stan.chambon@gmail.com> | 2017-08-04 11:16:30 +0200 |
---|---|---|
committer | Nicolas Courty <Nico@MacBook-Pro-de-Nicolas.local> | 2017-09-01 11:09:13 +0200 |
commit | cd4fa7275dc65e04f7b256dec4208d68006abc25 (patch) | |
tree | 797beafc470be2bdae357018076dccd9c351f269 /ot/da.py | |
parent | d5c6cc178a731d955e5eb85e9f477805fa086518 (diff) |
added test for fit_transform + correction of fit_transform bug (missing return self)
Diffstat (limited to 'ot/da.py')
-rw-r--r-- | ot/da.py | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -1283,6 +1283,8 @@ class SinkhornTransport(BaseTransport): numItermax=self.max_iter, stopThr=self.tol, verbose=self.verbose, log=self.log) + return self + class EMDTransport(BaseTransport): """Domain Adapatation OT method based on Earth Mover's Distance @@ -1357,3 +1359,5 @@ class EMDTransport(BaseTransport): # verbose=self.verbose, # log=self.log ) + + return self |