Machine learned Green's functions that approximately satisfy the wave equation