Closed ZSTanone closed 2 years ago
Before solving a system of 6 ODEs, you may first try a simpler case to get some experience.
Before solving a system of 6 ODEs, you may first try a simpler case to get some experience.
Sorry to bother you again ,first thanks for your answer , I've read the ode example in your DeepXDE doc , and I success in finishing a more complex question ,then I start to figure this 6 ODEs problem out ,but in this ODE system ,I notice some magnitudes of the solution could be very small , like 1e-8 ,which is different from other question . So it's pretty important to do variable scaling . To get a ideal answer, can I do the output scaling like I showed in the code ,make the output in a smaller magnitude ,will this give negative influence on my solution? Thanks
Yes, scaling is very important, and you need to resacle.
Yes, scaling is very important, and you need to resacle.
If I want to solve a problem which has a small magnitude could you give me some advice about scaling ,much appreciate.
See FAQ Q: I failed to train the network or get the right solution, e.g., large training loss, unbalanced losses.
Dear Lu, Thanks for your work to provide such great package about PINN. Recently I have read your paper about SBINNs ,I'm very interesting about your work. Before start doing inverse problem ,I want to figure forward problem first . But when I try to use deepxde to solve my odes some problem occurred. Firstly, I implement odes on Matlab ,it works well and I regard the result of Matlab as correct ,so I can know weather the result from PINN is ok. But the PINN works not that well ,the train loss is pretty low and the predict value can't match the matlab result. Here are five of the six outputs
And here is the information about loss during training
Here is my code
`import deepxde as dde import numpy as np import torch import matplotlib.pyplot as plt
In this problem the Timedomain is large and I used input transform to scale it. As for output transform ,I don't know if I did the right work , the item 'tanh(t)' seem to give my outputs the feature of tanh. As for the chosen of loss weight that I try to maintain my 6 odes' loss on the same magnitude after compile. I've tried to adjust my learning rate or the train epochs and still can't get ideal solution ,and I've read the FQA about loss items ,it can't provide me enough information about my problem. So I hope you can give me some suggestions about my problems ,I'm very appreciate about your help.