Quantum fields and machine learning