BENCH newton-lsmr solver for GLMs - inner stopping criterion#26707
Draft
lorentzenchr wants to merge 40 commits intoscikit-learn:mainfrom
Draft
BENCH newton-lsmr solver for GLMs - inner stopping criterion#26707lorentzenchr wants to merge 40 commits intoscikit-learn:mainfrom
lorentzenchr wants to merge 40 commits intoscikit-learn:mainfrom
Conversation
- keep dtype float32 after LSMR - lower test precision in test_NewtonLSMRSolver_multinomial_A_b_on_3_classes
* SKLEARN_TESTS_GLOBAL_RANDOM_SEED="all" pytest -x
* for benchmarking of inner stopping criterion of inexact Newton methods
❌ Linting issuesMerging with This PR is introducing linting issues. Here's a summary of the issues. Note that you can avoid having linting issues by enabling You can see the details of the linting issues under the
|
This was referenced Jun 26, 2023
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Reference Issues/PRs
This PR is not for merge, but for analysis of #25462.
The newton-lsmr solver needs a good inner stopping criterion with a good forcing sequence. This is investigated here and benchmarks are run.
For stopping criteria of inexact Newton methods (mainly conjugate gradient for inner solver) see:
https://www.csie.ntu.edu.tw/~cjlin/papers/tncg/tncg.pdf
https://doi.org/10.1109/TNNLS.2020.3045836
Any other comments?
See added notebook Bench_Newton_LSMR.ipynb in this PR for analysis results.