-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Why does the output of the function 'neural_net_vessel1' go to the exponential of A? #1
Comments
A is the area and it should always be non-negative. For this reason, we use a trick where we consider that the neural net prediction as the logarithm of the area and compute its exponential. So, this exponential you see here is used to cancel the logarithm. This trick, meaning tf.exp(A) where A is tf.log(A), always provides non-negative predictions. |
What a good idea! Thanks. |
You need to run the code for a larger number of iterations. You need to change lines 103 and 104 in 'Y_shaped.py'
to
You can also check the paper to see the training details. I will correct the code to resolve any confusion. |
Thanks. I've only trained 40,000 times before. |
I will close this for now and if you need more help send me an email. |
The valuable and enlightening research. and I've got a question to consult you.
Why does the output of the function 'neural_net_vessel1' go to the exponential of A ?
As follows,
def neural_net_vessel1(self, x, t):
Au = self.neural_net(tf.concat([x,t],1),self.weights1,self.biases1,self.layers)
A = Au[:,0:1]
u = Au[:,1:2]
p = Au[:,2:3]
return tf.exp(A), u, p
I'm looking forward to your reply soon.
The text was updated successfully, but these errors were encountered: