Skip to main content

Learning Theory: Cheat Sheet

The whole topic compressed for the night before the exam.

Concept learning

NumbersCounting the spaces
  • dd binary attributes give 2d2^d objects, and therefore 22d2^{2^d} concepts.
  • Conjunctive concepts number 3d+1\mathbf{3^d + 1}. For d=3d = 3 that is 27+1=2827 + 1 = 28, down from 256.
FactsThe two algorithms
  • Find-S - start from h = Ø; for each positive example, pairwise-AND, generalizing to ? wherever the values differ. It ignores negatives and returns the most specific hypothesis.
  • Version space - the set of all hypotheses consistent with the training data, meaning h(xi)=c(xi)h(x_i) = c(x_i) for every ii.

PAC learning

P[Pr(c(x)h(x))ε]1δP\left[\, \Pr\big(c(x) \neq h(x)\big) \le \varepsilon \,\right] \ge 1 - \delta
FactsPAC in four lines
  • PAC-learnable means the above holds in time polynomial in 1/ε1/\varepsilon, 1/δ1/\delta, nn and size(c)\text{size}(c). Probably (δ\delta) Approximately (ε\varepsilon) Correct.
  • True error is the probability of misclassifying an instance drawn from DD.
  • ε-exhausted version space - every hh in the version space has error below ε\varepsilon.
  • Haussler: P(VS not ε-exhausted)HeεmP(VS \text{ not } \varepsilon\text{-exhausted}) \le |H| e^{-\varepsilon m}.
Sample complexity:m1ε(lnH+ln1δ)\textbf{Sample complexity:} \quad m \ge \frac{1}{\varepsilon}\left( \ln|H| + \ln\frac{1}{\delta} \right)

VC dimension

FactsShattering and capacity
  • The finite-HH bound fails for infinite HH, which is where VC dimension takes over.
  • HH shatters SS if it realizes all 2S2^{|S|} dichotomies of SS.
  • VC(H)VC(H) = the largest set HH can shatter. For finite HH, VC(H)log2HVC(H) \le \log_2|H|.
Hypothesis classVC dimension
Interval on the real line2
Linear surfaces / perceptron in ℝʳr + 1 (a line in 2D gives 3)
Conjunction of n literalsn
Sine wave a · sin(bx), on only 2 parameters
testErrortrainError+f(n,h=VC,p)\text{testError} \le \text{trainError} + f(n, h = VC, p)
Exam cueThe generalization one-liner

Big HH against small nn means overfitting. A constrained HH, or a large nn, means low training error really does imply low generalization error.

Provenance: two VC-Dimension decks exist (Lec60 plus an alternate); both are merged here, including the alternate deck's bias-variance and generalization-bound material. The numeric examples on these pages - VC of an interval = 2, VC of a hyperplane in the plane = 3, and the sample-complexity bound - were independently recomputed and verified.

0%0 of 70 pages studied