Correct xi in SolverCore.solve! in LM and R2N solvers#239
Correct xi in SolverCore.solve! in LM and R2N solvers#239MohamedLaghdafHABIBOULLAH wants to merge 5 commits into
Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR corrects the model function mk in the SolverCore.solve! method for both LM and R2N solvers by adding a quadratic regularization term.
- Adds the regularization term
- 1/2 * σk * dot(d, d)to the model functionmk - Ensures consistent mathematical formulation across both solver implementations
Reviewed Changes
Copilot reviewed 2 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| src/R2N.jl | Updates model function to include quadratic regularization term |
| src/LM_alg.jl | Updates model function to include quadratic regularization term |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #239 +/- ##
===========================================
+ Coverage 61.53% 84.41% +22.88%
===========================================
Files 11 13 +2
Lines 1292 1630 +338
===========================================
+ Hits 795 1376 +581
+ Misses 497 254 -243 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Should we merge? @dpo @MaxenceGollier |
There was a problem hiding this comment.
Pull Request Overview
Copilot reviewed 2 out of 3 changed files in this pull request and generated 2 comments.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
|
I think dpo had a comment (on zulip) |
….solve! for LM and R2N solvers
| while !done | ||
| sub_atol = stats.iter == 0 ? 1.0e-3 : min(sqrt_ξ1_νInv ^ (1.5), sqrt_ξ1_νInv * 1e-3) | ||
|
|
||
| solver.subpb.model.σ = σk |
There was a problem hiding this comment.
Why should we remove this ?
solver.subpb.model.σwill not be updated anywhere ?
There was a problem hiding this comment.
I think that line needs to stay. It's the computation of stats and subtract the
There was a problem hiding this comment.
We should close this as this issue has been treated here PR by Maxence.
No description provided.