summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorOleksii Kachaiev <kachayev@gmail.com>2023-05-03 10:36:09 +0200
committerGitHub <noreply@github.com>2023-05-03 10:36:09 +0200
commit2aeb591be6b19a93f187516495ed15f1a47be925 (patch)
tree9a6f759856a3f6b2d7c6db3514927ba3e5af10b5 /test
parent8a7035bdaa5bb164d1c16febbd83650d1fb6d393 (diff)
[DOC] Corrected spelling errors (#467)
* Fix typos in docstrings and examples * A few more fixes * Fix ref for `center_ot_dual` function * Another typo * Fix titles formatting * Explicit empty line after math blocks * Typo: asymmetric * Fix code cell formatting for 1D barycenters * Empirical * Fix indentation for references * Fixed all WARNINGs about title formatting * Fix empty lines after math blocks * Fix whitespace line * Update changelog * Consistent Gromov-Wasserstein * More Gromov-Wasserstein consistency --------- Co-authored-by: RĂ©mi Flamary <remi.flamary@gmail.com>
Diffstat (limited to 'test')
-rw-r--r--test/test_ot.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/test_ot.py b/test/test_ot.py
index f2338ac..068080b 100644
--- a/test/test_ot.py
+++ b/test/test_ot.py
@@ -299,7 +299,7 @@ def test_lp_barycenter():
A = np.hstack((a1, a2))
M = np.array([[0, 1.0, 4.0], [1.0, 0, 1.0], [4.0, 1.0, 0]])
- # obvious barycenter between two diracs
+ # obvious barycenter between two Diracs
bary0 = np.array([0, 1.0, 0])
bary = ot.lp.barycenter(A, M, [.5, .5])
@@ -314,7 +314,7 @@ def test_free_support_barycenter():
X_init = np.array([-12.]).reshape((1, 1))
- # obvious barycenter location between two diracs
+ # obvious barycenter location between two Diracs
bar_locations = np.array([0.]).reshape((1, 1))
X = ot.lp.free_support_barycenter(measures_locations, measures_weights, X_init)
@@ -348,7 +348,7 @@ def test_generalised_free_support_barycenter():
Y_init = np.array([-12., 7.]).reshape((1, 2))
- # obvious barycenter location between two 2D diracs
+ # obvious barycenter location between two 2D Diracs
Y_true = np.array([0., .0]).reshape((1, 2))
# test without log and no init
@@ -387,7 +387,7 @@ def test_lp_barycenter_cvxopt():
A = np.hstack((a1, a2))
M = np.array([[0, 1.0, 4.0], [1.0, 0, 1.0], [4.0, 1.0, 0]])
- # obvious barycenter between two diracs
+ # obvious barycenter between two Diracs
bary0 = np.array([0, 1.0, 0])
bary = ot.lp.barycenter(A, M, [.5, .5], solver=None)