-
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
Open
tramora
wants to merge
1
commit into
main
Choose a base branch
from
533-add-max-parts-supervised-estimators
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+45
−1
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -762,6 +762,7 @@ def setUpClass(cls): | |
| "specific_pairs": [("age", "race")], | ||
| "all_possible_pairs": False, | ||
| "construction_rules": ["TableMode", "TableSelection"], | ||
| "max_parts": 0, | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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. |
||
| "group_target_value": False, | ||
| "additional_data_tables": {}, | ||
| } | ||
|
|
@@ -790,6 +791,7 @@ def setUpClass(cls): | |
| "max_selected_variables": 1, | ||
| "max_evaluated_variables": 3, | ||
| "construction_rules": ["TableMode", "TableSelection"], | ||
| "max_parts": 5, | ||
| "additional_data_tables": {}, | ||
| } | ||
| }, | ||
|
|
@@ -818,6 +820,7 @@ def setUpClass(cls): | |
| "specific_pairs": [("age", "race")], | ||
| "all_possible_pairs": False, | ||
| "construction_rules": ["TableMode", "TableSelection"], | ||
| "max_parts": 7, | ||
| "informative_variables_only": True, | ||
| "group_target_value": False, | ||
| "keep_initial_categorical_variables": False, | ||
|
|
@@ -860,6 +863,7 @@ def setUpClass(cls): | |
| "specific_pairs": [], | ||
| "all_possible_pairs": False, | ||
| "construction_rules": ["TableMode", "TableSelection"], | ||
| "max_parts": 4, | ||
folmos-at-orange marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| "group_target_value": False, | ||
| "additional_data_tables": {"SpliceJunctionDNA"}, | ||
| } | ||
|
|
@@ -889,6 +893,7 @@ def setUpClass(cls): | |
| "max_selected_variables": 1, | ||
| "max_evaluated_variables": 3, | ||
| "construction_rules": ["TableMode", "TableSelection"], | ||
| "max_parts": 6, | ||
| "additional_data_tables": {"SpliceJunctionDNA"}, | ||
| } | ||
| }, | ||
|
|
@@ -918,6 +923,7 @@ def setUpClass(cls): | |
| "specific_pairs": [], | ||
| "all_possible_pairs": False, | ||
| "construction_rules": ["TableMode", "TableSelection"], | ||
| "max_parts": 8, | ||
| "informative_variables_only": True, | ||
| "group_target_value": False, | ||
| "keep_initial_categorical_variables": False, | ||
|
|
@@ -1480,6 +1486,7 @@ def test_parameter_transfer_classifier_fit_from_multitable_dataframe(self): | |
| "specific_pairs": [], | ||
| "all_possible_pairs": False, | ||
| "construction_rules": ["TableMode", "TableSelection"], | ||
| "n_feature_parts": 4, | ||
| "group_target_value": False, | ||
| }, | ||
| ) | ||
|
|
@@ -1517,6 +1524,7 @@ def test_parameter_transfer_encoder_fit_from_monotable_dataframe(self): | |
| "specific_pairs": [("age", "race")], | ||
| "all_possible_pairs": False, | ||
| "construction_rules": ["TableMode", "TableSelection"], | ||
| "n_feature_parts": 7, | ||
| "informative_features_only": True, | ||
| "group_target_value": False, | ||
| "keep_initial_variables": False, | ||
|
|
@@ -1543,6 +1551,7 @@ def test_parameter_transfer_encoder_fit_from_monotable_dataframe_with_df_y( | |
| "specific_pairs": [("age", "race")], | ||
| "all_possible_pairs": False, | ||
| "construction_rules": ["TableMode", "TableSelection"], | ||
| "n_feature_parts": 7, | ||
| "informative_features_only": True, | ||
| "group_target_value": False, | ||
| "keep_initial_variables": False, | ||
|
|
@@ -1568,6 +1577,7 @@ def test_parameter_transfer_encoder_fit_from_multitable_dataframe(self): | |
| "specific_pairs": [], | ||
| "all_possible_pairs": False, | ||
| "construction_rules": ["TableMode", "TableSelection"], | ||
| "n_feature_parts": 8, | ||
| "informative_features_only": True, | ||
| "group_target_value": False, | ||
| "keep_initial_variables": False, | ||
|
|
@@ -1608,6 +1618,7 @@ def test_parameter_transfer_regressor_fit_from_monotable_dataframe(self): | |
| "n_text_features": 300000, | ||
| "type_text_features": "ngrams", | ||
| "construction_rules": ["TableMode", "TableSelection"], | ||
| "n_feature_parts": 5, | ||
| }, | ||
| ) | ||
|
|
||
|
|
@@ -1626,6 +1637,7 @@ def test_parameter_transfer_regressor_fit_from_monotable_dataframe_with_df_y( | |
| "n_text_features": 300000, | ||
| "type_text_features": "ngrams", | ||
| "construction_rules": ["TableMode", "TableSelection"], | ||
| "n_feature_parts": 5, | ||
| }, | ||
| ) | ||
|
|
||
|
|
@@ -1644,6 +1656,7 @@ def test_parameter_transfer_regressor_fit_from_multitable_dataframe(self): | |
| "n_selected_features": 1, | ||
| "n_evaluated_features": 3, | ||
| "construction_rules": ["TableMode", "TableSelection"], | ||
| "n_feature_parts": 6, | ||
| }, | ||
| ) | ||
|
|
||
|
|
||
Oops, something went wrong.
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.
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-negativeThere 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.