Checking Shapes Through a Small Neural Model

A shape trace states which axis each layer transforms, preserves, or aggregates, allowing errors to be found before comparing results.

Source
Anbloq
Language
English
Created
Updated
Chapters
2
Reading time
1 min
In this article2 chapters
  1. Trace a batch example
  2. Check values as well

Trace a batch example

Two examples with three features pass into a layer with four outputs, producing shape \((2,4)\) under the chosen convention. Another layer can map each row to one score. See dense layer shapes.

Check values as well

A shape can be correct while feature contents are permuted. Use independent expected values for at least one small input. Test inputs that distinguish outputs guide that choice.[1]

References

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