Skip to content

Commit 89c893c

Browse files
committed
Update match_transport.md
1 parent 4656287 commit 89c893c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lectures/match_transport.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ kernelspec:
1515

1616
+++
1717

18-
## Overview
18+
## Overview
1919

2020
Optimal transport theory studies how a marginal probabilty measure can be related to another marginal probability measure in an ideal way.
2121

@@ -184,7 +184,7 @@ N_agents_per_side = 60
184184
185185
np.random.seed(1)
186186
187-
## Genetate random types
187+
## Generate random types
188188
# generate random support for distributions of types
189189
support_size = 50
190190
random_support = np.unique(np.random.uniform(0,200, size=support_size))
@@ -1614,7 +1614,7 @@ example_2.plot_matching(matching_NAM, title = 'NAM',
16141614
16151615
+++ {"user_expressions": []}
16161616
1617-
### Example 3
1617+
### Example 3
16181618
16191619
+++ {"user_expressions": []}
16201620
@@ -1659,7 +1659,7 @@ example_3.plot_matching(matching_NAM, title = 'NAM',
16591659
16601660
+++ {"user_expressions": []}
16611661
1662-
## Dual Solution
1662+
## Dual solution
16631663
16641664
+++ {"user_expressions": []}
16651665
@@ -1835,7 +1835,7 @@ The algorithm to compute the dual variables has a hierarchical structure: it sta
18351835
We can visualize the hierarchical structure by computing the order in which he pairs will be processed and plotting the matching with color of the arcs corresponding the hierarchy.
18361836
18371837
```{code-cell} ipython3
1838-
## Compute Hierarchies
1838+
## Compute hierarchies
18391839
18401840
def find_hierarchies(subpairs):
18411841
@@ -1868,7 +1868,7 @@ def find_hierarchies(subpairs):
18681868
18691869
return hierarchies
18701870
1871-
## Plot Hierarchies
1871+
## Plot hierarchies
18721872
18731873
def plot_hierarchies(self, subpairs, scatter=True, range_x_axis=None):
18741874
# Compute hierarchies

0 commit comments

Comments
 (0)