Definition

The empirical risk of on the sample is . ERM chooses a function class and selects .

Formula

  • Counterexample: memorize the training labels and predict elsewhere: , . The losses are not independent because depends on all points.
  • Success depends on the function class : statistical learning theory (Lecture 3) gives conditions under which ERM is consistent.
  • ERM with the 0-1 loss is often NP hard; in practice one minimizes convex surrogate losses.

Appears in