enforcing positive solution using sigmoid fails. #1401
Unanswered
yoanncheny
asked this question in
Q&A
Replies: 2 comments 1 reply
-
|
Have you tried |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
The solution proposed by @haison19952013 allows me to get a positive solution. However the solution is totally wrong. Previously it was rather ok except for the unphysical negative values. Has anyone got some hints for understanding this behaviour ? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Dear DeepXDE users,
I'm solving the BCRE equations with deepxde. The solutions of this problem are under the form h(x,t) and R(x,t) which are positive or zero.
To help the training and avoiding unrelevant solutions I aply a sigmoid function for the output layer :
`net = dde.nn.FNN([2] + 4 * [50] + [2], ["tanh","tanh","tanh","tanh","sigmoid"], "Glorot normal")
model = dde.Model(data, net)
model.compile("adam", lr=1e-3)
losshistory, train_state =model.train(iterations=500)`
However after training the solution has negative values up to -0.3.
Has anyone already faced such an issue ?
Regards,
Yoann
Beta Was this translation helpful? Give feedback.
All reactions