The Representation Theory of Neural Networks