GithubHelp home page GithubHelp logo

Comments (5)

hieronimoDos avatar hieronimoDos commented on June 30, 2024

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.

from 1dbloodflowpinns.

YouqiongLiu avatar YouqiongLiu commented on June 30, 2024

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.
For the prototype Y-shaped bifurcation, I cannot run the program 'Y_shaped.py' to reproduce the result as shown in Figure 6 in paper.
Is there any skill in here?

from 1dbloodflowpinns.

hieronimoDos avatar hieronimoDos commented on June 30, 2024

You need to run the code for a larger number of iterations. You need to change lines 103 and 104 in 'Y_shaped.py'

model.train(1,1e-3)
model.train(2,1e-4)

to

model.train(90000,1e-3)
model.train(40000,1e-4)

You can also check the paper to see the training details. I will correct the code to resolve any confusion.

from 1dbloodflowpinns.

YouqiongLiu avatar YouqiongLiu commented on June 30, 2024

You need to run the code for a larger number of iterations. You need to change lines 103 and 104 in 'Y_shaped.py'

model.train(1,1e-3)
model.train(2,1e-4)

to

model.train(90000,1e-3)
model.train(40000,1e-4)

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.

from 1dbloodflowpinns.

hieronimoDos avatar hieronimoDos commented on June 30, 2024

I will close this for now and if you need more help send me an email.

from 1dbloodflowpinns.

Related Issues (1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.