summaryrefslogtreecommitdiff
path: root/ot/da.py
diff options
context:
space:
mode:
authorSlasnista <stan.chambon@gmail.com>2017-08-04 11:16:30 +0200
committerSlasnista <stan.chambon@gmail.com>2017-08-04 11:16:30 +0200
commit70be03461db45de50ecd073b9795093ead1ba5f5 (patch)
tree797beafc470be2bdae357018076dccd9c351f269 /ot/da.py
parentd9be6c2da1c0953de1720f1e93f194c71699c3cd (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.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/ot/da.py b/ot/da.py
index fb2fd36..80649a7 100644
--- a/ot/da.py
+++ b/ot/da.py
@@ -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