Photon-AI-Research / NeuralSolvers

Neural network based solvers for partial differential equations and inverse problems :milky_way:. Implementation of physics-informed neural networks in pytorch.
MIT License
141 stars 46 forks source link

Weighting is not set correctly #55

Open StillerPatrick opened 2 years ago

StillerPatrick commented 2 years ago

In the HPMLoss the weighting is not set correctly.

super(HPMLoss, self).__init__(dataset, None, name, norm='L2', weight=1.)

should be

super(HPMLoss, self).__init__(dataset, None, name, norm='L2', weight=weight)