summaryrefslogtreecommitdiff
path: root/examples/unbalanced-partial/plot_regpath.py
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 /examples/unbalanced-partial/plot_regpath.py
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 'examples/unbalanced-partial/plot_regpath.py')
-rw-r--r--examples/unbalanced-partial/plot_regpath.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/unbalanced-partial/plot_regpath.py b/examples/unbalanced-partial/plot_regpath.py
index 782e8c2..d1f2042 100644
--- a/examples/unbalanced-partial/plot_regpath.py
+++ b/examples/unbalanced-partial/plot_regpath.py
@@ -60,7 +60,7 @@ pl.show()
##############################################################################
# Compute semi-relaxed and fully relaxed regularization paths
-# -----------
+# -----------------------------------------------------------
#%%
final_gamma = 1e-8
@@ -72,9 +72,9 @@ t2, t_list2, g_list2 = ot.regpath.regularization_path(a, b, M, reg=final_gamma,
##############################################################################
# Plot the regularization path
-# ----------------
+# ----------------------------
#
-# The OT plan is ploted as a function of $\gamma$ that is the inverse of the
+# The OT plan is plotted as a function of $\gamma$ that is the inverse of the
# weight on the marginal relaxations.
#%% fully relaxed l2-penalized UOT
@@ -109,7 +109,7 @@ pl.show()
# %%
# Animation of the regpath for UOT l2
-# ------------------------
+# -----------------------------------
nv = 100
g_list_v = np.logspace(-.5, -2.5, nv)
@@ -149,7 +149,7 @@ ani = animation.FuncAnimation(pl.gcf(), _update_plot, nv, interval=50, repeat_de
##############################################################################
# Plot the semi-relaxed regularization path
-# -------------------
+# -----------------------------------------
#%% semi-relaxed l2-penalized UOT
@@ -181,7 +181,7 @@ pl.show()
# %%
# Animation of the regpath for semi-relaxed UOT l2
-# ------------------------
+# ------------------------------------------------
nv = 100
g_list_v = np.logspace(2.5, -2, nv)