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

What is Optim's mechanism for calculating the gradient? #1065

Open
Li-shiyue opened this issue Jan 24, 2024 · 1 comment
Open

What is Optim's mechanism for calculating the gradient? #1065

Li-shiyue opened this issue Jan 24, 2024 · 1 comment

Comments

@Li-shiyue
Copy link

When using the LBFGS algorithm within Fminbox, what is Optim's mechanism for calculating the gradient if there is no gradient vector for a given objective function? Can you give a detailed description?

@pkofod
Copy link
Member

pkofod commented Jan 26, 2024

It depends on whether you choose an ad algorithm or not. If you do not, it's finite differencing. See some more information here https://julianlsolvers.github.io/Optim.jl/dev/user/gradientsandhessians/ . Does that answer your question?

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