10000 BENCH newton-lsmr solver for GLMs - inner stopping criterion by lorentzenchr · Pull Request #26707 · scikit-learn/scikit-learn · GitHub
[go: up one dir, main page]

Skip to content

BENCH newton-lsmr solver for GLMs - inner stopping criterion #26707

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

Draft
wants to merge 40 commits into
base: main
Choose a base branch
from

Conversation

lorentzenchr
Copy link
Member
@lorentzenchr lorentzenchr commented Jun 26, 2023

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:

Any other comments?

See added notebook Bench_Newton_LSMR.ipynb in this PR for analysis results.

- 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
@github-actions
Copy link
github-actions bot commented Jun 26, 2023

❌ Linting issues

Merging with upstream/main might fix / improve the issues if you haven't done that since 21.06.2023.

This PR is introducing linting issues. Here's a summary of the issues. Note that you can avoid having linting issues by enabling pre-commit hooks. Instructions to enable them can be found here.

You can see the details of the linting issues under the lint job here


ruff

ruff detected issues. Please run ruff --fix --show-source . locally, fix the remaining issues, and push the changes. Here you can see the detected issues. Note that the installed ruff version is ruff=0.0.275.

Generated for commit: 56e4953. Link to the linter CI: here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

1 participant
0