A correspondence between neural networks and quantum field theory