Skip to content

Commit 99efa4e

Browse files
committed
fix docstring
1 parent d6c9ee3 commit 99efa4e

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

docs/src/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ sinkhorn_unbalanced
2323
sinkhorn_unbalanced2
2424
```
2525

26-
## Quadratically regularised optimal transport
26+
## Optimal transport with general regularisation
2727
```@docs
28-
quadreg
28+
ot_reg_plan
2929
```

examples/basic/script.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ sinkhorn2(μ, ν, C, ε)
9292
# resulting transport plan $\gamma$ is *sparse*. We take advantage of this and represent it as
9393
# a sparse matrix.
9494

95-
quadreg(μ, ν, C, ε; maxiter=500);
95+
ot_reg_plan(μ, ν, C, ε; reg_func = "L2", method = "lorenz", maxiter=500);
9696

9797
# ## Stabilized Sinkhorn algorithm
9898
#
@@ -188,7 +188,7 @@ heatmap(
188188
# Notice how the "edges" of the transport plan are sharper if we use quadratic regularisation
189189
# instead of entropic regularisation:
190190

191-
γquad = Matrix(quadreg(μ, ν, C, 5; maxiter=500))
191+
γquad = Matrix(ot_reg_plan(μ, ν, C, 5; reg_func = "L2", method = "lorenz", maxiter=500))
192192
heatmap(
193193
μsupport,
194194
νsupport,

src/OptimalTransport.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ general choice of regulariser `math Ω(γ)`. Solves for `gamma` that minimises
552552
```
553553
554554
Supported choices of `math Ω` are:
555-
- L2: `math Ω(γ) = \\frac{1}{2} \\| γ \\|_2^2`, `reg_func = "L2"`
555+
- L2: ``Ω(γ) = \\frac{1}{2} \\| γ \\|_2^2``, `reg_func = "L2"`
556556
557557
Supported solution methods are:
558558
- L2: `method = "lorenz"` for the semi-smooth Newton method of Lorenz et al.

0 commit comments

Comments
 (0)