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

why two optimizers are needed during the training? #4

Closed
manwu1994 opened this issue Oct 15, 2022 · 1 comment
Closed

why two optimizers are needed during the training? #4

manwu1994 opened this issue Oct 15, 2022 · 1 comment

Comments

@manwu1994
Copy link

Hello, thanks a lot for your hard work and your sharing.
I would like to ask why two optimizers are needed during the training.
self.optimizer.step(self.loss_func)
self.optimizer_Adam.step()

Thank you so much in advance for your answers.

@jayroxis
Copy link
Owner

Hi,

The original PINN uses two optimizers, Adam for initial optimization since it is generally more stable, and later use second order optimizer LBFGS for finetuning to reach higher accuracy.

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