Add the n_feature_parts parameter to the supervised estimators#544
Open
Add the n_feature_parts parameter to the supervised estimators#544
n_feature_parts parameter to the supervised estimators#544Conversation
folmos-at-orange
approved these changes
Feb 4, 2026
| type_error_message("n_feature_parts", self.n_feature_parts, int) | ||
| ) | ||
| if self.n_feature_parts < 0: | ||
| raise ValueError("'n_feature_parts' must be positive") |
Member
There was a problem hiding this comment.
positive -> non-negative
Collaborator
Author
There was a problem hiding this comment.
You are totally right, this reformulation would be more precise. Unfortunatly the message is duplicated many times and for consistency sake it would be required to modify everywhere (in a distinct PR)
Member
There was a problem hiding this comment.
A commit for fixing this would suffice. It is a small change for a PR.
| "specific_pairs": [], | ||
| "all_possible_pairs": False, | ||
| "construction_rules": ["TableMode", "TableSelection"], | ||
| "max_parts": 4, |
Member
There was a problem hiding this comment.
Make one of these tests with an explicit 0
Collaborator
Author
There was a problem hiding this comment.
Yes, I changed the test for KhiopsClassifier "fit" with a monotable : the n_feature_parts parameter was not provided and thus the default value of 0 is set
CHANGELOG.md
Outdated
| ## Unreleased | ||
|
|
||
| ### Added | ||
| - (`sklearn`) A `n_feature_parts` parameter to the supervised estimators |
- KhiopsClassifier, KhiopsRegressor and KhiopsEncoder
bef0798 to
d084a67
Compare
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.
Fixes #533
TODO Before Asking for a Review
main(ormain-v10)Unreleasedsection ofCHANGELOG.md(no date)index.html