summaryrefslogtreecommitdiff
path: root/ot/da.py
diff options
context:
space:
mode:
authorSlasnista <stan.chambon@gmail.com>2017-09-04 09:12:32 +0200
committerSlasnista <stan.chambon@gmail.com>2017-09-04 09:12:32 +0200
commit363c5f92a4865527320edcff97036e62a7ca28c9 (patch)
treef0d1d002b980cbae5a9e48cb7ff76785ae1e9925 /ot/da.py
parent30bfc5ce5acd98991b3d01e313d0c14f0e600b14 (diff)
doc string + example
Diffstat (limited to 'ot/da.py')
-rw-r--r--ot/da.py72
1 files changed, 54 insertions, 18 deletions
diff --git a/ot/da.py b/ot/da.py
index e694668..1d3d0ba 100644
--- a/ot/da.py
+++ b/ot/da.py
@@ -966,8 +966,12 @@ class BaseTransport(BaseEstimator):
The class labels
Xt : array-like, shape (n_target_samples, n_features)
The training input samples.
- yt : array-like, shape (n_labeled_target_samples,)
- The class labels
+ yt : array-like, shape (n_target_samples,)
+ The class labels. If some target samples are unlabeled, fill the
+ yt's elements with -1.
+
+ Warning: Note that, due to this convention -1 cannot be used as a
+ class label
Returns
-------
@@ -1023,8 +1027,12 @@ class BaseTransport(BaseEstimator):
The class labels
Xt : array-like, shape (n_target_samples, n_features)
The training input samples.
- yt : array-like, shape (n_labeled_target_samples,)
- The class labels
+ yt : array-like, shape (n_target_samples,)
+ The class labels. If some target samples are unlabeled, fill the
+ yt's elements with -1.
+
+ Warning: Note that, due to this convention -1 cannot be used as a
+ class label
Returns
-------
@@ -1045,8 +1053,12 @@ class BaseTransport(BaseEstimator):
The class labels
Xt : array-like, shape (n_target_samples, n_features)
The training input samples.
- yt : array-like, shape (n_labeled_target_samples,)
- The class labels
+ yt : array-like, shape (n_target_samples,)
+ The class labels. If some target samples are unlabeled, fill the
+ yt's elements with -1.
+
+ Warning: Note that, due to this convention -1 cannot be used as a
+ class label
batch_size : int, optional (default=128)
The batch size for out of sample inverse transform
@@ -1110,8 +1122,12 @@ class BaseTransport(BaseEstimator):
The class labels
Xt : array-like, shape (n_target_samples, n_features)
The training input samples.
- yt : array-like, shape (n_labeled_target_samples,)
- The class labels
+ yt : array-like, shape (n_target_samples,)
+ The class labels. If some target samples are unlabeled, fill the
+ yt's elements with -1.
+
+ Warning: Note that, due to this convention -1 cannot be used as a
+ class label
batch_size : int, optional (default=128)
The batch size for out of sample inverse transform
@@ -1241,8 +1257,12 @@ class SinkhornTransport(BaseTransport):
The class labels
Xt : array-like, shape (n_target_samples, n_features)
The training input samples.
- yt : array-like, shape (n_labeled_target_samples,)
- The class labels
+ yt : array-like, shape (n_target_samples,)
+ The class labels. If some target samples are unlabeled, fill the
+ yt's elements with -1.
+
+ Warning: Note that, due to this convention -1 cannot be used as a
+ class label
Returns
-------
@@ -1333,8 +1353,12 @@ class EMDTransport(BaseTransport):
The class labels
Xt : array-like, shape (n_target_samples, n_features)
The training input samples.
- yt : array-like, shape (n_labeled_target_samples,)
- The class labels
+ yt : array-like, shape (n_target_samples,)
+ The class labels. If some target samples are unlabeled, fill the
+ yt's elements with -1.
+
+ Warning: Note that, due to this convention -1 cannot be used as a
+ class label
Returns
-------
@@ -1434,8 +1458,12 @@ class SinkhornLpl1Transport(BaseTransport):
The class labels
Xt : array-like, shape (n_target_samples, n_features)
The training input samples.
- yt : array-like, shape (n_labeled_target_samples,)
- The class labels
+ yt : array-like, shape (n_target_samples,)
+ The class labels. If some target samples are unlabeled, fill the
+ yt's elements with -1.
+
+ Warning: Note that, due to this convention -1 cannot be used as a
+ class label
Returns
-------
@@ -1545,8 +1573,12 @@ class SinkhornL1l2Transport(BaseTransport):
The class labels
Xt : array-like, shape (n_target_samples, n_features)
The training input samples.
- yt : array-like, shape (n_labeled_target_samples,)
- The class labels
+ yt : array-like, shape (n_target_samples,)
+ The class labels. If some target samples are unlabeled, fill the
+ yt's elements with -1.
+
+ Warning: Note that, due to this convention -1 cannot be used as a
+ class label
Returns
-------
@@ -1662,8 +1694,12 @@ class MappingTransport(BaseEstimator):
The class labels
Xt : array-like, shape (n_target_samples, n_features)
The training input samples.
- yt : array-like, shape (n_labeled_target_samples,)
- The class labels
+ yt : array-like, shape (n_target_samples,)
+ The class labels. If some target samples are unlabeled, fill the
+ yt's elements with -1.
+
+ Warning: Note that, due to this convention -1 cannot be used as a
+ class label
Returns
-------