Skip to content

Avoid negative solutions #6

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

Open
MariaPaulaDelPopolo opened this issue Jun 24, 2024 · 1 comment
Open

Avoid negative solutions #6

MariaPaulaDelPopolo opened this issue Jun 24, 2024 · 1 comment

Comments

@MariaPaulaDelPopolo
Copy link

Hi! Thanks for the nice example! I am new to PINNs and was checking the results and saw that the minimum value is a negative value. I wanted to do basically the same example but to model the diffusion of a certain substance, so I cannot have negative concentrations. I thought about using an activation function after the final layer (a sigmoid or a softplus), but in any case the output is really inaccurate after this implementation. I also tried some other activation functions for the hidden layers, but it was not helpful. I was wondering if you had any idea on how to solve this issue. Thanks in advance!

@MariaPaulaDelPopolo MariaPaulaDelPopolo changed the title Avoid negative sollutions Avoid negative solutions Jun 24, 2024
@NicholasDewberryOfficial

I'm not sure what you meant by this, could you give some more detail? From what I can tell, it accurately maps the output from 6^{-3x} into a workable 3d graph using a neural network.

There shouldn't be any negative numbers as the equation doesn't cross the X axis (check second image)

image

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants