Emergent field theories from neural networks