Skip to content
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

Avoid negative solutions #6

Open
MariaPaulaDelPopolo opened this issue Jun 24, 2024 · 0 comments
Open

Avoid negative solutions #6

MariaPaulaDelPopolo opened this issue Jun 24, 2024 · 0 comments

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
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

1 participant