Repository navigation
Conversation
Encode once in the forest and pass category counts through bagging so each tree does not re-encode. Co-authored-by: Cursor <[email protected]>
Co-authored-by: Cursor <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Reference Issues/PRs
Stacked on scikit-learn#34832.
Towards: scikit-learn#33965
What does this implement/fix? Explain your changes.
Adds native categorical support to
IsolationForestviacategorical_features, on top of the random forest and extra trees support in scikit-learn#34832.IsolationForest builds its trees through
Bagging, so this PR passes the resolved categorical mask and precomputed category counts into each tree from_parallel_build_estimators. The forest encodes once.warm_startrefits with categorical features raise, same as the other forests.AI usage disclosure
This pull request includes code written with the assistance of AI.
The code has not yet been reviewed by a human.
I used AI assistance for:
Any other comments?
Depends on scikit-learn#34832. Review this after that PR, or as a stack on
feat/cat-forest.Made with Cursor