From 2aeb591be6b19a93f187516495ed15f1a47be925 Mon Sep 17 00:00:00 2001 From: Oleksii Kachaiev Date: Wed, 3 May 2023 10:36:09 +0200 Subject: [DOC] Corrected spelling errors (#467) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 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 --- test/test_ot.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'test') 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) -- cgit v1.2.3