Skip to content

New argument: max_inner_iter#865

Merged
Jan Tilly (jtilly) merged 8 commits intoQuantco:mainfrom
mlondschien:max-iter-inner
Nov 8, 2024
Merged

New argument: max_inner_iter#865
Jan Tilly (jtilly) merged 8 commits intoQuantco:mainfrom
mlondschien:max-iter-inner

Conversation

@mlondschien
Copy link
Copy Markdown
Contributor

@mlondschien Malte Londschien (mlondschien) commented Oct 24, 2024

contributes to #850

Comment thread CHANGELOG.rst
Comment thread CHANGELOG.rst Outdated
Co-authored-by: Luca Bittarello <15511539+lbittarello@users.noreply.github.com>
Co-authored-by: Luca Bittarello <15511539+lbittarello@users.noreply.github.com>
Copy link
Copy Markdown
Member

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
Copy Markdown
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
Copy Markdown
Member

Martin Stancsics (@stanmart), ping

Copy link
Copy Markdown
Collaborator

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 Jan Tilly (jtilly) merged commit df6f372 into Quantco:main Nov 8, 2024
@mlondschien
Copy link
Copy Markdown
Contributor Author

Malte Londschien (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