The input pyramidal layer(s) would normally be trained first and act as feature
detectors.
The output pyramids are trained seprately as full discriminators (unary coding)
or as a set (binary coding).
The error function is calculated according to the output coding selected and
from this, the reward and penalty signals are calculated by external
circuits.