Building imaginary-time thermal filed theory with artificial neural networks