diff options
author | Slasnista <stan.chambon@gmail.com> | 2017-08-04 11:16:30 +0200 |
---|---|---|
committer | Slasnista <stan.chambon@gmail.com> | 2017-08-04 11:16:30 +0200 |
commit | 70be03461db45de50ecd073b9795093ead1ba5f5 (patch) | |
tree | 797beafc470be2bdae357018076dccd9c351f269 /ot/da.py | |
parent | d9be6c2da1c0953de1720f1e93f194c71699c3cd (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 |