Skip to content

Commit 0496e2b

Browse files
committed
doc typos in linear map function
1 parent 0a9763c commit 0496e2b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

ot/da.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -640,9 +640,9 @@ def OT_mapping_linear(xs, xt, reg=1e-6, ws=None,
640640
wt=None, bias=True, log=False):
641641
""" return OT linear operator between samples
642642
643-
The function estimate the optimal linear operator that align the two
643+
The function estimates the optimal linear operator that aligns the two
644644
empirical distributions. This is equivalent to estimating the closed
645-
form mapping between two Gaussian distribution :math:`N(\mu_s,\Sigma_s)`
645+
form mapping between two Gaussian distributions :math:`N(\mu_s,\Sigma_s)`
646646
and :math:`N(\mu_t,\Sigma_t)` as proposed in [14] and discussed in remark 2.29 in [15].
647647
648648
The linear operator from source to target :math:`M`
@@ -665,7 +665,7 @@ def OT_mapping_linear(xs, xt, reg=1e-6, ws=None,
665665
xt : np.ndarray (nt,d)
666666
samples in the target domain
667667
reg : float,optional
668-
regularization added to the daigonals of convariances (>0)
668+
regularization added to the diagonals of convariances (>0)
669669
ws : np.ndarray (ns,1), optional
670670
weights for the source samples
671671
wt : np.ndarray (ns,1), optional
@@ -1290,9 +1290,9 @@ class label
12901290
class LinearTransport(BaseTransport):
12911291
""" OT linear operator between empirical distributions
12921292
1293-
The function estimate the optimal linear operator that align the two
1293+
The function estimates the optimal linear operator that aligns the two
12941294
empirical distributions. This is equivalent to estimating the closed
1295-
form mapping between two Gaussian distribution :math:`N(\mu_s,\Sigma_s)`
1295+
form mapping between two Gaussian distributions :math:`N(\mu_s,\Sigma_s)`
12961296
and :math:`N(\mu_t,\Sigma_t)` as proposed in [14] and discussed in
12971297
remark 2.29 in [15].
12981298

0 commit comments

Comments
 (0)