concept output layer in category python
appears as: output layer, output layer

This is an excerpt from Manning's book Math for Programmers: 3D graphics, machine learning, and simulations with Python.
As another potentially confusing point, the superscript 2 above the a values indicates the output layer is layer two in our network, while the 2 outside the parentheses means squaring the quantity. To get a total cost relative to the data set, you can evaluate the neural network for all of the sample images and take the average squared distance. At the end of the section, you can try the mini-project for implementing this yourself in Python.