Replies: 1 comment
-
|
|
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.
-
I am working on solving a diffusion PDE with sink using DeepXDE. I have to find concentration of oxygen in a certain depth (x) over time (t). So my input to my network is a pair (x,t), and the output is concentration of oxygen at the given depth in a given time. I also have an analytical solution for the problem.
So basically I have successfully made a model that corresponds to analytical solution. The problem I have is that analytical solution returns a negative concentration for larger times, which is physically not possible. Interperting the physics of the problem I have come to a conclustion that when concentration reaches negative levels it should be interperted as 0 (there is no oxygen left).
My question is how can I tune my network so that the outputs are not negative? In those cases I want outputs to be zero.
I have tried using the
apply_outputs_transformfunction (function that maps all negative solutions to zeroes), but it seems that it interferes with the training (the output of the network is slightly off the analytical solution).Does anyone have some idea on how I am supposed to aproach this?
Beta Was this translation helpful? Give feedback.
All reactions