Thanks to visit codestin.com
Credit goes to github.com

Skip to content

API Move IterativeImputer outside from experimental - #34214

Merged
GaelVaroquaux merged 15 commits into
scikit-learn:mainfrom
glemaitre:move_iterative_imputer
Jun 11, 2026
Merged

API Move IterativeImputer outside from experimental#34214
GaelVaroquaux merged 15 commits into
scikit-learn:mainfrom
glemaitre:move_iterative_imputer

Conversation

@glemaitre

@glemaitre glemaitre commented Jun 8, 2026

Copy link
Copy Markdown
Member

closes #14338

We never moved out of experimental IterativeImputer notably because of the reason that we get convergence warning.

However, the work in https://arxiv.org/abs/2407.19804 will tell us that we should not expect the iterative imputation to converge and that it can even be counter productive to spend too many imputation with a diminishing return.

Based on this research, we should make the IterativeImputer out of experimental, stop to warn when it does not converge and instead make it such that we run it with a certain budget and document this positioning by recalling the literature.

@glemaitre
glemaitre marked this pull request as draft June 8, 2026 15:32
@glemaitre
glemaitre marked this pull request as ready for review June 8, 2026 15:58
@glemaitre

Copy link
Copy Markdown
Member Author

ping @GaelVaroquaux if you have a little time to have a look at the documentation that I added and if it is inline with what you had in mind.

@glemaitre
glemaitre marked this pull request as draft June 8, 2026 16:00
@glemaitre
glemaitre marked this pull request as ready for review June 8, 2026 16:09

@StefanieSenger StefanieSenger left a comment

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.

Thank you @glemaitre, I love cleanups! 🦾
It looks all good to me, only a nit comment and the suggestion to add recommendations for max_iter.

Comment thread sklearn/experimental/enable_iterative_imputer.py
Comment thread doc/modules/impute.rst Outdated
Comment thread doc/modules/impute.rst Outdated

@GaelVaroquaux GaelVaroquaux left a comment

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.

Great PR. I think that I'd like to add in the imputation docs and examples a few high-level summary messages on imputation for prediction.

Let me send you a PR to this PR :)

@glemaitre

Copy link
Copy Markdown
Member Author

Great PR. I think that I'd like to add in the imputation docs and examples a few high-level summary messages on imputation for prediction.

I rework the introduction with an approach that should be more towards what we would recommend nowadays given the understanding of the project. You can check the latest commit: 9ad4bc4

@StefanieSenger StefanieSenger left a comment

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.

LGTM, only two little nits.
Thanks for your work.

Comment thread doc/modules/impute.rst Outdated
Comment thread doc/modules/impute.rst Outdated
Comment thread doc/modules/impute.rst Outdated
Comment thread doc/modules/impute.rst
Co-authored-by: Guillaume Lemaitre <[email protected]>
Comment thread doc/modules/impute.rst

@GaelVaroquaux GaelVaroquaux left a comment

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.

I tiny suggested change (on top of my own changes πŸ˜€ ), but IMHO this is ready to go.

Comment thread doc/modules/impute.rst Outdated

@GaelVaroquaux GaelVaroquaux left a comment

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.

LGTM. Merging πŸŽ‰ πŸŽ‰ πŸŽ‰ πŸŽ‰

@GaelVaroquaux
GaelVaroquaux merged commit f744cc4 into scikit-learn:main Jun 11, 2026
38 checks passed
prady0t pushed a commit to prady0t/scikit-learn that referenced this pull request Sep 2, 2026
@jeremiedbb jeremiedbb mentioned this pull request Sep 8, 2026
14 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

IterativeImputer not converging (at all)

3 participants