Skip to content

Allow warm_start with categorical features in RandomForest and ExtraTrees - #14

Draft
adam2392 wants to merge 663 commits into
mainfrom
feat/cat-forest-warm-start
Draft

adam2392 wants to merge 663 commits into
mainfrom
feat/cat-forest-warm-start

Conversation

@adam2392

@adam2392 adam2392 commented Oct 16, 2026 •

Copy link
Copy Markdown
Owner

Summary

HistGradientBoosting* already allows warm_start with categorical features. Forests were rejecting that combination because each fit re-encodes categories. This drops the special-case error so forests behave the same way: re-encode on fit and keep growing the ensemble when warm_start=True.

Stacked on scikit-learn#34832.

scikit-learn-bot and others added 30 commits July 13, 2026 14:58
Co-authored-by: Stefanie Senger <[email protected]>
Co-authored-by: Jérémie du Boisberranger <[email protected]>
Co-authored-by: Loïc Estève <[email protected]>
…aps other code) by ensuring C/Cython inlining actually happens (scikit-learn#34486)
lesteve and others added 19 commits October 10, 2026 06:40
Co-authored-by: Cursor Agent <[email protected]>
Co-authored-by: Adam Li <[email protected]>
Co-authored-by: Arthur Lacote <[email protected]>
Co-authored-by: Claude Sonnet 5 <[email protected]>
@adam2392
adam2392 changed the base branch from feat/cat-forest to main October 16, 2026 17:30
Match HistGradientBoosting: re-encode on each fit instead of rejecting
warm_start when categorical features are used.
@adam2392
adam2392 force-pushed the feat/cat-forest-warm-start branch from 8ead9ef to f836308 Compare October 16, 2026 17:32
@adam2392

Copy link
Copy Markdown
Owner Author

Rebased onto scikit-learn main (after scikit-learn#34832 merge) and opened upstream PR: scikit-learn#35151

@adam2392
adam2392 force-pushed the feat/cat-forest-warm-start branch from dbf59c2 to 57614cc Compare October 16, 2026 17:32
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.