The Physics of Neural Networks