Training and Evaluation Modes of a Model

Some neural layers use different rules during fitting and scoring. Evaluation should apply the intended inference behavior explicitly.

Source
Anbloq
Language
English
Created
Updated
Chapters
2
Reading time
1 min
In this article2 chapters
  1. Trace a scaling layer
  2. Check stable predictions

Trace a scaling layer

A normalization layer can compute statistics across a training batch and later use stored statistics under an inference rule. See normalization layer axes.

Check stable predictions

Evaluate the same held-out example under compatible batch contexts and check what variation is promised. Serving-time preprocessing addresses a related mode boundary.[1]

References

  1. Ian Goodfellow, Yoshua Bengio and Aaron Courville, Deep Learning ↩