deepxde icon indicating copy to clipboard operation
deepxde copied to clipboard

Get a very small loss but the results are completely not correct

Open weiroy opened this issue 1 year ago • 3 comments

Hi! @lululxvi Thanks very much for your amazing work! But I encountered a problem. Specifically, the loss is very small, but the results are completely not correct. I am wondering why this happend.

image

The loss is about 1e-5, in figure 2, the black line is the reference solution and the red line the prediction results of deepxde. And the governing equations, boundary conditions are as follows:

1f83bbef4af1624445515c1fc3096f6

Looking forward to your reply.

weiroy avatar Dec 06 '23 01:12 weiroy

If this is a well-posed problem with a unique solution, then you are making a mistake in the implementation. Can you please share the code with us? Remember to use the code snippet to paste your code.

praksharma avatar Dec 13 '23 21:12 praksharma

A low loss value should be viewed as an initial guess that the model is not fundamentally flawed. In other words, low loss values do not ensure high accuracy, but rather indicate that the model is correctly implemented on a basic level. A good example of this was a completely wrong formulation of my Navier Stokes PDE in spherical coordinates. Although I achieved a low loss, I was not able to get the precision that I needed, which caused me to go back over my code and find the mistake.

jdellag avatar Dec 14 '23 22:12 jdellag

If this is a well-posed problem with a unique solution, then you are making a mistake in the implementation. Can you please share the code with us? Remember to use the code snippet to paste your code.

It's my mistake, the right ode system is as follows. But I encountered another problem, the small coefficient 0.001 seem to make the results of pinn hard to converge to the reference solution image

weiroy avatar Dec 16 '23 08:12 weiroy