Optimally weighted loss functions for solving PDEs with Neural Networks | Synapse