Algorithmadvanced
Shape context
Also called shape context descriptor.
Describe each point of a shape by the log-polar histogram of the other points around it, then match two shapes by the least-cost assignment of chi-square costs between histograms.
- Solves
- Object recognition
- Time
- O(n^2 + m^2 + n m K + (n + m)^3) worst · average · best
- Space
- O((n + m)^2 + (n + m) K) extra
- Where
- K = the number of bins of a histogram; m = the number of points of the second shape; n = the number of points of the first shape
- Model
- Real RAM
- Properties
- deterministicexactnot heuristicnot rotation invariantscale invarianttranslation invariant
- Evidence
- Proof sketchCode in 1 languages
- Origin
- Serge Belongie, Jitendra Malik, Jan Puzicha, 2000
The shape context is a descriptor for a point on a shape, where a shape is a finite set of points, for example points sampled from the edges of an image. For a point it counts the other points of the shape in bins that are uniform in log distance and in angle around . The histogram tells where the rest of the shape is, as seen from , with more detail near than far away. To match two shapes, the method computes a chi-square cost between each histogram of one shape and each histogram of the other, and finds the one-to-one matching of least total cost with the Hungarian algorithm. Belongie, Malik and Puzicha then aligned the shapes with a thin plate spline and used the matching cost for recognition of digits, objects and trademarks.
In plain words
Stand on one point of a drawing and look around. Draw rings at growing distances, each ring twice as far as the one before or so, and cut the rings into 12 slices like a pie. Count how many points of the drawing fall into each piece. The counts form the description of the point where you stand. A point at the tip of the letter A sees most of the letter below it. A point at the foot sees most of it above and to one side. To compare two drawings, find the pairing of their points that makes the descriptions of paired points most alike in total. If the drawings show the same shape, the pairs are the same parts of the shape.
The problem
The input is two finite point sets and in the plane, the numbers of bins and , the radial range and an optional dummy cost . Let be the mean distance between the ordered pairs of points of , as in Section 3.3 of the paper. For and , let
The radial bin of is , and the angle bin of is . The shape context of is the histogram of the bins of the vectors with , divided by its total. The paper uses , and the range from to , which gives bins and the bin edges in units of the mean distance.
The cost of matching with is the chi-square statistic
with taken as . Since and sum to 1, . For the output is the permutation that minimizes , which is the assignment problem. With dummy nodes, each point can stay unmatched at the cost , and the cost matrix is padded to a square.
The algorithm
SHAPE-CONTEXT-MATCH(P, Q, ε_d)- 1
α ← the mean of ‖p_j - p_i‖ over all n^2 ordered pairs of P ▷ the same for Q - 2
for each point p_i of P do ▷ the same for Q - 3
for each j ≠ i, find the log r bin and the θ bin of (p_j - p_i) / α - 4
add 1 to that bin of h_i if r is in [r_in, r_out) - 5
divide h_i by its total - 6
C_ij ← 1/2 Σ_k (h_i(k) - h_j(k))^2 / (h_i(k) + h_j(k)) for each p_i of P and q_j of Q - 7
if n ≠ m or ε_d is given then pad C to a square matrix with dummy rows and columns of cost ε_d - 8
π ← the least-cost assignment of C, by the Hungarian method - 9
return π, with the points matched to dummies left unmatched, and its cost
Line L8 uses the shortest augmenting path form of the Hungarian method with row and column potentials, which takes time for an matrix. The paper uses the faster algorithm of Jonker and Volgenant, see the Jonker-Volgenant algorithm, which solves the same problem.
With given, our code pads to : a real row and a dummy column, or a dummy row and a real column, cost , and two dummies cost . So each unmatched point of either shape costs , and a point stays unmatched exactly when no real partner is cheaper, as the paper says. Without and with , the smaller side is padded with the cost 1, which every assignment pays the same number of times.
Alignment and shape distance
In the paper, the matching is one step of a loop. From the matched pairs, the method fits a regularized thin plate spline that maps one shape onto the other, warps the shape, and computes new shape contexts and a new matching, for a few iterations. The shape distance used for recognition is a weighted sum of the shape context cost, an appearance cost and the bending energy of the spline. The page implements the descriptor and the matching; the spline fit is a separate step.
Example
Take the five points , , , and , a plus sign. The 25 ordered pairs have the distances 0 five times, 1 eight times, eight times and 2 four times, so
From the center, the four points are at , which is in the radial bin 3 (counted from 0), between 0.660 and 1.149. Their angles 0, 90, 180 and 270 degrees fall into the angle bins 0, 3, 6 and 9 of 30 degrees each. So the shape context of the center has in each of the bins , , and .
From , the center is at and angle 180 degrees, bin . The point is at and 180 degrees, bin . The points and are at and the angles 135 and 225 degrees, bins and . The two histograms share only the bin , where both hold . Each of the other six bins holds in one histogram and 0 in the other, and adds to the sum. So . Two opposite arm ends, and , share no bin, and their cost is the largest possible value, 1.
If the second shape is the same plus sign scaled by , moved, and with the points listed in another order, the histograms are the same as before, the cost of the true matching is 0, and the Hungarian method returns that permutation.
Correctness
The proof in proofs/correctness.md shows that:
- The histograms do not change under a translation and under a scaling by of a shape, since the vectors do not change under a translation, and both the distances and are multiplied by .
- , and exactly when the two histograms are equal.
- The Hungarian method returns an assignment of least total cost, by the duality of the assignment problem.
- With the padding of line L7, an optimal assignment of the padded matrix gives an optimal partial matching in which each unmatched point costs .
Whether the least-cost matching pairs the right parts of two different drawings of a shape is not a theorem. It is the measured behavior of the descriptor, reported in Sections 4.2 and 6 of the paper.
Proof: Correctness of shape context matchingfull
Let with distinct points, , and the normalized log-polar histogram of as defined on the page. The cost of two histograms and with nonnegative entries that sum to 1 (or are all 0) is with .
Lemma 1 (translation and scale). Let with . Then for each .
Proof. , so each distance is multiplied by , and so is the mean . So . The direction of is the direction of since , so . Each vector falls into the same bin or is left out in both cases, so the counts and their total are the same, and so are the normalized histograms.
In floating point the lemma holds exactly when is a power of 2 and the translation keeps the coordinates exact, as in the tests; otherwise a vector very close to a bin edge can change bins.
Lemma 2 (the cost). , and exactly when .
Proof. Each term with is a square divided by a positive number, so it is , and it is 0 exactly when . Terms with have . So , with equality exactly when . For we have , so each term is at most , and .
Lemma 3 (the Hungarian method is optimal). For an matrix , the procedure of line L8 returns a permutation with the least .
Proof. The procedure keeps potentials and with for all (dual feasibility) and a partial matching that uses only tight pairs, those with . It adds the rows one at a time. For a new row it grows a tree of alternating paths over tight pairs; when no tight pair leaves the tree, it changes the potentials by the smallest slack of a pair from a row in the tree to a column outside it. Adding to on the rows of the tree and subtracting it from on the columns of the tree keeps every pair of the tree and of the matching tight, keeps dual feasibility by the choice of , and makes at least one new pair tight. So after at most such changes the tree reaches a free column, and the matching grows by one along the path. After rows, is a perfect matching of tight pairs, so . For any permutation , dual feasibility gives . So is optimal. This is the argument of Kuhn (1955), in the form with shortest augmenting paths.
Lemma 4 (dummies). Let be and . Pad it to with the cost between a real row and a dummy column or a dummy row and a real column, and 0 between two dummies. Then the least cost of the padded assignment equals the least cost, over all partial matchings of rows to columns, of .
Proof. Take an assignment of the padded matrix, and let be its pairs of a real row and a real column. The other real rows go to dummy columns, and the other real columns get dummy rows, each at the cost . The remaining dummy rows go to dummy columns at the cost 0. So the cost of the assignment is the cost of in the formula. Conversely, given a partial matching , assign the unmatched real rows to distinct dummy columns, the unmatched real columns to distinct dummy rows, and the remaining dummy rows to the remaining dummy columns. There are dummy rows and dummy columns, so this is possible, and the cost is the cost of in the formula. So the two minima are equal, and an optimal padded assignment gives an optimal partial matching.
Theorem. SHAPE-CONTEXT-MATCH returns a matching of least total chi-square cost between the shape contexts of and , with each point matched to a dummy costing when dummies are used. The result does not change under a translation or a scaling by of either shape, and if is a translated and scaled copy of with its points permuted by , the matching has cost 0 and is optimal.
Proof. Lines L1 to L5 compute the histograms of the definition, and line L6 the costs. By Lemma 3 line L8 returns an optimal assignment of the matrix, and by Lemma 4 it is an optimal partial matching when dummies are used. By Lemma 1 the histograms, and so the costs and the matching, do not change under translation and scaling. If is such a copy, Lemma 1 gives , so by Lemma 2 the matching has cost 0, which is the least possible cost since all costs are .
Complexity
The model is the real RAM, with and in time. Let .
- Line L1 takes time for and for .
- Lines L2 to L5 take time for and for .
- Line L6 takes time.
- Line L8 takes time with , or with dummies.
So the total time is , and the assignment dominates for fixed. The extra space is for the cost matrix and for the histograms. The paper samples about 100 points per shape. It reports that one comparison with three iterations of matching and spline fitting took about 200 ms on a 500 MHz Pentium III; this is a measurement from 2002, not a bound.
Properties
- Translation and scale invariance. Exact, by the normalization with the mean distance.
- Rotation. Not invariant in the plain form. The relative frame of Section 3.3 measures angles from the tangent at each point and gives full rotation invariance, which the paper notes is wrong for tasks such as telling 6 from 9.
- Locality and global context. Each histogram covers the whole shape out to twice the mean distance, so it is a rich descriptor, but it is sensitive to occlusion of large parts.
- Log-polar bins. The bins are finer near the point. The paper explains this as a positional uncertainty that grows linearly with the distance.
- Outliers. Dummy nodes let outliers stay unmatched. Outliers still change the histograms of the other points and the mean distance.
- The sampling. The points are samples of the shape, not special points. Different samplings of the same contour give similar, not equal, histograms.
Variants and improvements
- Tangent frame. Measure angles relative to the tangent at each point for rotation invariance.
- Appearance and tangent terms. For MNIST the paper adds a tangent angle term with weight 0.1 to the cost.
- Inner-distance shape context. Ling and Jacobs replace the Euclidean distance by the shortest path inside the shape, which helps with articulated shapes.
- 3D shape context. Frome and coauthors use spherical bins on range data.
- Fast pruning. For retrieval in large sets, later work of Mori, Belongie and Malik prunes candidates by comparing a few representative shape contexts before the full matching.
- Other matchings. The Jonker-Volgenant algorithm solves the same assignment faster in practice. A greedy matching is cheaper but not optimal.
- Related distances. The chamfer distance compares shapes without correspondences, and the generalized Hough transform votes for a pose.
When to use it
Use shape contexts to match and compare silhouettes, contours, handwritten characters and logos, where the shape carries more information than the texture. They are a good choice when you need point correspondences between two shapes, for example to start a non-rigid registration. The cubic cost of the assignment limits the number of points to a few hundred. For keypoint matching between photographs, a descriptor of the image patch is a better choice.
Pitfalls
- The mean distance. The paper divides by the mean over the pairs, which includes the zero distances. Some codes take the mean over pairs with , which is larger by the factor . The bins then shift. Use the same rule on both shapes.
- Points outside the range. Points nearer than or farther than are not counted in our code. Some codes put them into the first or the last bin. The histograms of a shape with many close points can then be quite different.
- Image coordinates. With pointing down, the angle goes clockwise on the screen. This does not matter if both shapes use the same rule.
- Empty histograms. A point with no other point in range has an empty histogram. The chi-square cost against another empty histogram is 0.
- Ties in the assignment. Symmetric shapes, such as the plus sign, have several matchings of equal cost. Any of them is optimal.
- The dummy cost. If is too small, all points go to dummies. If , an optimal solution never leaves a point of each shape unmatched, because matching the two costs at most 1 and leaving both costs . Then the dummies only take the extra points of the larger shape.
Implementations
Each implementation follows the pseudocode above. A comment @line links a line of code to a line of the pseudocode. Point at a line of the pseudocode to see the matching code. The build runs the native tests of each language.
# SPDX-License-Identifier: MIT
# Part of https://algorithm.tamnd.com/shape-context/. The authors are listed in prov/A629T3.jsonl.
"""Shape context descriptors and shape matching by assignment.
Points are (x, y) pairs. For a point p_i, the shape context is the histogram
of the vectors p_j - p_i, j != i, in log-polar bins. Distances are divided by
the mean distance over all n^2 ordered pairs (Belongie, Malik and Puzicha 2002,
Section 3.3), and the radial bins are uniform in log r over [1/8, 2), as in
Appendix A of the paper. Vectors outside that range are not counted. The angle
is atan2(dy, dx) in [0, 2 pi), cut into equal bins. Each histogram is divided
by its total so that it sums to 1 (it stays 0 if no vector falls in a bin).
The cost of matching p_i with q_j is the chi-square statistic
C_ij = 1/2 sum_k (h_i(k) - h_j(k))^2 / (h_i(k) + h_j(k)), with 0/0 taken as 0.
The matching is the assignment of least total cost, found by the Hungarian
method in O(N^3) time. Dummy rows or columns with the constant cost eps_d make
the matrix square and let outliers stay unmatched.
"""
import math
from typing import List, Optional, Sequence, Tuple
Point = Tuple[float, float]
def mean_distance(points: Sequence[Point]) -> float:
"""Mean distance over all n^2 ordered pairs, including i = j."""
n = len(points)
total = 0.0
for a in points:
for b in points:
total += math.hypot(b[0] - a[0], b[1] - a[1])
return total / (n * n)
def shape_contexts(points: Sequence[Point], n_r: int = 5, n_theta: int = 12,
r_inner: float = 0.125, r_outer: float = 2.0) -> List[List[float]]:
"""Normalized log-polar histograms, one for each point, with n_r * n_theta bins."""
n = len(points)
alpha = mean_distance(points) # @line L1
log_in = math.log(r_inner)
log_span = math.log(r_outer) - log_in
out = []
for i in range(n): # @line L2
h = [0.0] * (n_r * n_theta)
xi, yi = points[i]
for j in range(n):
if j == i:
continue
dx, dy = points[j][0] - xi, points[j][1] - yi
r = math.hypot(dx, dy) / alpha
if r < r_inner or r >= r_outer:
continue
kr = int(n_r * (math.log(r) - log_in) / log_span) # @line L3
kr = min(kr, n_r - 1)
t = math.atan2(dy, dx) % (2.0 * math.pi)
kt = min(int(n_theta * t / (2.0 * math.pi)), n_theta - 1)
h[kr * n_theta + kt] += 1.0 # @line L4
s = sum(h)
if s > 0:
h = [x / s for x in h] # @line L5
out.append(h)
return out
def chi2_cost(h1: Sequence[float], h2: Sequence[float]) -> float:
"""The chi-square cost 1/2 sum (a - b)^2 / (a + b), with 0/0 = 0."""
c = 0.0
for a, b in zip(h1, h2):
if a + b > 0:
c += (a - b) * (a - b) / (a + b)
return 0.5 * c
def hungarian(cost: Sequence[Sequence[float]]) -> List[int]:
"""Least-cost assignment of a square matrix: row i goes to column result[i].
The shortest augmenting path form of the Hungarian method with row and
column potentials, O(n^3) time.
"""
n = len(cost)
inf = float("inf")
u = [0.0] * (n + 1)
v = [0.0] * (n + 1)
p = [0] * (n + 1) # p[j]: the row matched to column j (1-based), 0 if none
way = [0] * (n + 1)
for i in range(1, n + 1):
p[0] = i
j0 = 0
minv = [inf] * (n + 1)
used = [False] * (n + 1)
while True:
used[j0] = True
i0 = p[j0]
delta = inf
j1 = 0
for j in range(1, n + 1):
if not used[j]:
cur = cost[i0 - 1][j - 1] - u[i0] - v[j]
if cur < minv[j]:
minv[j] = cur
way[j] = j0
if minv[j] < delta:
delta = minv[j]
j1 = j
for j in range(n + 1):
if used[j]:
u[p[j]] += delta
v[j] -= delta
else:
minv[j] -= delta
j0 = j1
if p[j0] == 0:
break
while True:
j1 = way[j0]
p[j0] = p[j1]
j0 = j1
if j0 == 0:
break
result = [0] * n
for j in range(1, n + 1):
result[p[j] - 1] = j - 1
return result
def match_shapes(p: Sequence[Point], q: Sequence[Point], eps_d: Optional[float] = None,
**kw) -> Tuple[List[int], float]:
"""Match the points of p to the points of q.
Returns (m, total): m[i] is the index in q matched to p[i], or -1 when p[i]
goes to a dummy, and total is the cost of the real pairs plus eps_d for each
point of the larger set (or both) that goes to a dummy.
"""
hp = shape_contexts(p, **kw)
hq = shape_contexts(q, **kw)
m = len(q)
c = [[chi2_cost(a, b) for b in hq] for a in hp] # @line L6
return assign_with_dummies(c, m, eps_d)
def pad_with_dummies(c: Sequence[Sequence[float]], m: int, eps_d: Optional[float]) -> List[List[float]]:
"""Make the n x m cost matrix square with dummy rows and columns.
With eps_d given, the result is (n + m) x (n + m): each real point can go
to a dummy at the cost eps_d, and a dummy pair costs 0. Without eps_d, the
smaller side is padded to max(n, m) with the cost 1, the largest possible
chi-square cost, which is then the same for every assignment.
"""
n = len(c)
if eps_d is None and n == m:
return [list(row) for row in c]
eps = 1.0 if eps_d is None else eps_d
size = n + m if eps_d is not None else max(n, m)
full = [[0.0] * size for _ in range(size)]
for i in range(size):
for j in range(size):
if i < n and j < m:
full[i][j] = c[i][j]
elif i < n or j < m:
full[i][j] = eps
return full
def assign_with_dummies(c: Sequence[Sequence[float]], m: int, eps_d: Optional[float] = None) -> Tuple[List[int], float]:
"""Least-cost matching of rows to the m columns of c, with dummies; -1 means a dummy."""
n = len(c)
full = pad_with_dummies(c, m, eps_d) # @line L7
assign = hungarian(full) # @line L8
total = sum(full[i][assign[i]] for i in range(len(full)))
out = [assign[i] if assign[i] < m else -1 for i in range(n)]
return out, total # @line L9
test_shape_context.py 141 lines
# SPDX-License-Identifier: MIT
# Part of https://algorithm.tamnd.com/shape-context/. The authors are listed in prov/A629T3.jsonl.
import itertools
import math
import random
from shape_context import assign_with_dummies, chi2_cost, hungarian, match_shapes, mean_distance, shape_contexts
def brute_assignment(cost):
n = len(cost)
best = None
for perm in itertools.permutations(range(n)):
s = sum(cost[i][perm[i]] for i in range(n))
if best is None or s < best:
best = s
return best
def random_shape(rng, n):
pts = set()
while len(pts) < n:
pts.add((rng.randint(-20, 20), rng.randint(-20, 20)))
return sorted(pts)
def test_hungarian_matches_brute_force():
rng = random.Random(1)
for n in range(1, 8):
for _ in range(12):
cost = [[rng.randint(0, 30) for _ in range(n)] for _ in range(n)]
a = hungarian(cost)
assert sorted(a) == list(range(n))
assert sum(cost[i][a[i]] for i in range(n)) == brute_assignment(cost)
def test_hungarian_with_float_costs():
rng = random.Random(2)
for n in (5, 6):
cost = [[rng.random() for _ in range(n)] for _ in range(n)]
a = hungarian(cost)
assert abs(sum(cost[i][a[i]] for i in range(n)) - brute_assignment(cost)) < 1e-12
def test_mean_distance_by_hand():
pts = [(0, 0), (3, 4)]
# Ordered pairs: 0, 5, 5, 0, so the mean over n^2 = 4 pairs is 2.5.
assert mean_distance(pts) == 2.5
def test_histograms_sum_to_one_and_count_by_hand():
pts = [(0.0, 0.0), (1.0, 0.0), (0.0, 1.0), (-1.0, 0.0), (0.0, -1.0)]
h = shape_contexts(pts)
assert all(abs(sum(x) - 1.0) < 1e-12 for x in h)
# The mean distance is (8 * 1 + 4 * (2 + 2 * sqrt(2))) / 25.
alpha = (8 + 4 * (2 + 2 * math.sqrt(2))) / 25
assert abs(mean_distance(pts) - alpha) < 1e-12
# From the center, the four points are at r = 1 / alpha, angles 0, 90, 180 and 270 degrees.
r = 1 / alpha
kr = int(5 * (math.log(r) - math.log(0.125)) / math.log(16))
expected = [0.0] * 60
for kt in (0, 3, 6, 9):
expected[kr * 12 + kt] = 0.25
assert h[0] == expected
def test_chi2_cost_properties():
a = [0.5, 0.5, 0.0]
b = [0.0, 0.5, 0.5]
assert chi2_cost(a, a) == 0.0
assert abs(chi2_cost(a, b) - 0.5) < 1e-12
assert abs(chi2_cost([1.0, 0.0], [0.0, 1.0]) - 1.0) < 1e-12
def test_translation_and_scale_do_not_change_the_descriptors():
rng = random.Random(3)
pts = random_shape(rng, 20)
h = shape_contexts(pts)
moved = [(4 * x + 17, 4 * y - 9) for x, y in pts]
h2 = shape_contexts(moved)
for a, b in zip(h, h2):
assert max(abs(x - y) for x, y in zip(a, b)) < 1e-12
def test_permuted_scaled_copy_is_matched_exactly():
rng = random.Random(4)
pts = random_shape(rng, 18)
perm = list(range(18))
rng.shuffle(perm)
q = [None] * 18
for i, j in enumerate(perm):
x, y = pts[i]
q[j] = (0.5 * x + 3.0, 0.5 * y + 1.0)
m, total = match_shapes(pts, q)
assert m == perm
assert total < 1e-12
def test_noisy_copy_is_mostly_matched():
rng = random.Random(5)
pts = [(10 * math.cos(2 * math.pi * k / 24), 6 * math.sin(2 * math.pi * k / 24)) for k in range(24)]
pts += [(-3.0 + k, 0.0) for k in range(7)]
q = [(x + rng.gauss(0, 0.15), y + rng.gauss(0, 0.15)) for x, y in pts]
m, _ = match_shapes(pts, q)
right = sum(1 for i, j in enumerate(m) if i == j)
assert right >= 24
def brute_partial(cost, m, eps):
"""Best partial matching: each unmatched row or column costs eps."""
n = len(cost)
best = None
for k in range(min(n, m) + 1):
for rows in itertools.combinations(range(n), k):
for cols in itertools.permutations(range(m), k):
s = sum(cost[r][c] for r, c in zip(rows, cols)) + eps * (n - k + m - k)
if best is None or s < best:
best = s
return best
def test_dummies_match_brute_force_partial_matching():
rng = random.Random(6)
for n, m in ((3, 3), (4, 2), (2, 5), (4, 4)):
for _ in range(6):
cost = [[rng.random() for _ in range(m)] for _ in range(n)]
eps = rng.choice([0.1, 0.3, 0.5])
out, total = assign_with_dummies(cost, m, eps)
assert abs(total - brute_partial(cost, m, eps)) < 1e-12
used = [j for j in out if j >= 0]
assert len(used) == len(set(used))
def test_outlier_row_goes_to_a_dummy():
cost = [[0.05, 0.9, 0.9], [0.9, 0.1, 0.9], [0.95, 0.9, 0.97]]
out, total = assign_with_dummies(cost, 3, eps_d=0.4)
assert out == [0, 1, -1]
assert abs(total - (0.05 + 0.1 + 0.4 + 0.4)) < 1e-12
out2, _ = assign_with_dummies([[0.2, 0.5], [0.4, 0.1], [0.3, 0.3]], 2)
assert out2 == [0, 1, -1]
History
Belongie, Malik and Puzicha introduced shape contexts in a 2000 conference paper and gave the full method in IEEE TPAMI in 2002. They used about 100 points sampled from Canny edges, the Jonker-Volgenant assignment algorithm and regularized thin plate splines. On MNIST, with 20,000 training digits and a 3-nearest-neighbor classifier, they reported a test error of 0.63 percent, a benchmark result of 2002. Shape contexts were also used for trademark retrieval and for 3D object recognition from views.
References
- Serge Belongie, Jitendra Malik and Jan Puzicha, Shape matching and object recognition using shape contexts, IEEE Transactions on Pattern Analysis and Machine Intelligence 24(4), 509-522, 2002, Section 3.1 (the log-polar histogram, 5 bins for log r and 12 for the angle, the chi-square cost), Section 3.2 (bipartite matching in O(N^3), dummy nodes), Section 3.3 (normalization by the mean distance, the tangent frame), Section 4 (modeling transformations, regularized thin plate splines), Section 4.3 (computational demands), Section 6.1 (MNIST), Appendix A (the radial range 0.125 to 2)
- Harold W. Kuhn, The Hungarian method for the assignment problem, Naval Research Logistics Quarterly 2(1-2), 83-97, 1955, the whole paper (the assignment algorithm)
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H1 sketch |
|
| Lean | L0 no Lean part |
|
| Code (python) | I0 not checked yet |
|
| Visual | V0 none |
|
| Writing | W2 basic |
|
Tag A629T3 Edit this page History Report an error Markdown