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

New argument: max_inner_iter #865

Merged
merged 8 commits into from
Nov 8, 2024
Merged

Conversation

mlondschien
Copy link
Contributor

@mlondschien mlondschien commented Oct 24, 2024

contributes to #850

CHANGELOG.rst Show resolved Hide resolved
CHANGELOG.rst Outdated Show resolved Hide resolved
mlondschien and others added 2 commits October 24, 2024 10:35
Co-authored-by: Luca Bittarello <[email protected]>
Co-authored-by: Luca Bittarello <[email protected]>
Copy link
Member

@MarcAntoineSchmidtQC MarcAntoineSchmidtQC left a comment

Choose a reason for hiding this comment

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

This is great, and was probably originally meant to be exposed. Thanks.

I'm wondering if we should change the default value to 1000 (as mentioned in the linked issue). Can you provide a simulation to show the difference in runtime between the two?

I'm happy to merge this without the change and switch the discussion to another issue.

@mlondschien
Copy link
Contributor Author

Can you provide a simulation to show the difference in runtime between the two?

I have not managed to reproduce the convergence issues I encountered on a simulated dataset. The dataset I am using is an aggregation of ICU benchmarks. A training and approval by the dataset owner is required to access. So while not proprietary, it's not easy to share.

The defining feature of this dataset is that there are many strongly correlated features and many mean-imputed missing values.

@lbittarello
Copy link
Member

@stanmart, ping

Copy link
Collaborator

@stanmart stanmart left a comment

Choose a reason for hiding this comment

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

LGTM, but maybe don't close #850 until we test if a lower default works better.

@jtilly jtilly merged commit df6f372 into Quantco:main Nov 8, 2024
15 of 20 checks passed
@mlondschien
Copy link
Contributor Author

mlondschien commented Nov 8, 2024

LGTM, but maybe don't close #850 until we test if a lower default works better.

My understanding is the the max_iter_inner is only needed if there is some problem with the inner solver, e.g., the problem is not strictly convex. Exposing max_iter_inner to the user to avoid the solver trying to find a unique minimum that does not exist for many, many iterations is a hotfix. It would be good to solve the underlying problem: Why does the inner solver not converge in say 10 iterations? Quantco/tabmat#408 is a first step. Still, glum does not behave as expected for problems such as the one in #872. Why? Probably something with the hessian.

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.

5 participants