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

update TRDH to use diagonal QN model #132

Merged
merged 2 commits into from
Mar 26, 2024
Merged

update TRDH to use diagonal QN model #132

merged 2 commits into from
Mar 26, 2024

Conversation

dpo
Copy link
Member

@dpo dpo commented Feb 27, 2024

No description provided.

This was referenced Feb 27, 2024
Copy link

codecov bot commented Feb 27, 2024

Codecov Report

Attention: Patch coverage is 85.00000% with 3 lines in your changes are missing coverage. Please review.

Project coverage is 61.45%. Comparing base (8a70702) to head (9046f43).

Files Patch % Lines
src/TRDH_alg.jl 84.61% 2 Missing ⚠️
src/utils.jl 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #132      +/-   ##
==========================================
- Coverage   61.62%   61.45%   -0.17%     
==========================================
  Files          11       11              
  Lines        1295     1292       -3     
==========================================
- Hits          798      794       -4     
- Misses        497      498       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@dpo dpo requested a review from geoffroyleconte February 27, 2024 03:03
Copy link
Contributor

Here are the
demos-results

@@ -186,8 +186,9 @@ function TR(
set_radius!(ψ, ∆_effective)
subsolver_options.Δk = ∆_effective / 10
subsolver_options.ν = ν
subsolver_args = subsolver == TRDH ? (SpectralGradient(1 / ν, f.meta.nvar),) : ()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this imply that we can only use TR-TRDH with SpectralGradient?
Also, I think the operator should be preallocated outside the while loop to facilitate the use of in-place subsolvers (once in-place methods are implemented for all the subsolvers in the same manner as R2!)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, for the moment, it’s the only option (the other two don’t perform well anyways). I plan to make this an option when I implement the solver object, so I’m not making an effort to preallocate at this point.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The others perform well on some problems, like SVM for example. I'll keep a branch on my fork then if want still want to be able to produce the results of indef-pg.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I’m planning to work on the solvers soon, so the option should be in place in the near future.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added a note about that in #129.

@dpo dpo mentioned this pull request Feb 28, 2024
4 tasks
@dpo dpo merged commit b8831fb into master Mar 26, 2024
18 checks passed
@dpo dpo deleted the update-trdh branch March 26, 2024 22:41
@dpo dpo mentioned this pull request Mar 26, 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

Successfully merging this pull request may close these issues.

2 participants