-
Notifications
You must be signed in to change notification settings - Fork 2
Add the n_feature_parts parameter to the supervised estimators
#544
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
| 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") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
positive -> non-negative
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A commit for fixing this would suffice. It is a small change for a PR.
- KhiopsClassifier, KhiopsRegressor and KhiopsEncoder
bef0798 to
d084a67
Compare
| "specific_pairs": [("age", "race")], | ||
| "all_possible_pairs": False, | ||
| "construction_rules": ["TableMode", "TableSelection"], | ||
| "max_parts": 0, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure in this testcase we need to test that the default value provided to the Core API is correct or unchanged via sklearn. Indeed, in this testcase we test that the parameters are correctly passed from the sklearn code to the core API.
popescu-v
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See the comment.
Fixes #533
TODO Before Asking for a Review
main(ormain-v10)Unreleasedsection ofCHANGELOG.md(no date)index.html