-
Notifications
You must be signed in to change notification settings - Fork 15
Fomo generalized #353
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
base: main
Are you sure you want to change the base?
Fomo generalized #353
Conversation
modified: src/fomo.jl remove useless vector p delete body of find_beta_tilde (TODO in next commit)
…vers.jl into fomo-generalized
|
|
||
| grad!(nlp, x, ∇fk) | ||
| norm_∇fk = norm(∇fk) | ||
| oneT = T(1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you really need that ? I think keeping 1 should dispatch to the right type
|
|
||
| solver.α = init_alpha(norm_∇fk, step_backend) | ||
|
|
||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
|
||
| grad!(nlp, x, g) | ||
| norm_∇fk = norm(g) | ||
| d .= -g |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does this allocate ? Should it be d .= .-g ?
| """ | ||
| # function update_kappa(αk::T, αk₋::T, ::ia_momentum) where {T} | ||
| # 1 | ||
| # end | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| """ | |
| # function update_kappa(αk::T, αk₋::T, ::ia_momentum) where {T} | |
| # 1 | |
| # end | |
| """ |
Add Nesterov's Heavy-Ball and non-linear conjugate gradient (Polak-Ribière and Fletcher-Reeves) momentum strategies.