Skip to content

Commit 4e758f8

Browse files
committed
fix docstring
1 parent f809e19 commit 4e758f8

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
@@ -94,7 +94,7 @@ sinkhorn2(μ, ν, C, ε)
9494
# resulting transport plan $\gamma$ is *sparse*. We take advantage of this and represent it as
9595
# a sparse matrix.
9696

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

9999
# ## Stabilized Sinkhorn algorithm
100100
#
@@ -190,7 +190,7 @@ heatmap(
190190
# Notice how the "edges" of the transport plan are sharper if we use quadratic regularisation
191191
# instead of entropic regularisation:
192192

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

src/OptimalTransport.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,7 @@ general choice of regulariser `math Ω(γ)`. Solves for `gamma` that minimises
517517
```
518518
519519
Supported choices of `math Ω` are:
520-
- L2: `math Ω(γ) = \\frac{1}{2} \\| γ \\|_2^2`, `reg_func = "L2"`
520+
- L2: ``Ω(γ) = \\frac{1}{2} \\| γ \\|_2^2``, `reg_func = "L2"`
521521
522522
Supported solution methods are:
523523
- L2: `method = "lorenz"` for the semi-smooth Newton method of Lorenz et al.

0 commit comments

Comments
 (0)