-
Notifications
You must be signed in to change notification settings - Fork 34
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
SLEP015: Feature Names Propagation #48
Merged
adrinjalali
merged 14 commits into
scikit-learn:master
from
thomasjpfan:slep015_feature_names_prop
Nov 30, 2022
Merged
Changes from 1 commit
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
3b6631d
DOC Adds slep015
thomasjpfan 55b62f6
DOC Adjust wording to allow Pipeline to store
thomasjpfan 2f1d2f8
DOC Adds more details
thomasjpfan 22b9b00
DOC Adds more details about array_out
thomasjpfan 4392546
CLN Address comments
thomasjpfan 0608c37
DOC Address comments
thomasjpfan 902f792
DOC Adds details
thomasjpfan 1fff514
DOC Adjust styling
thomasjpfan 388eda8
DOC Adds more details
thomasjpfan 7537b15
DOC Comment about meta-estimators
thomasjpfan 8916cb1
DOC Comment about get_feature_names
thomasjpfan e9b275c
CLN Address comments
thomasjpfan ffd0954
DOC Specify data type
thomasjpfan 3f6426f
Merge remote-tracking branch 'upstream/master' into slep015_feature_n…
thomasjpfan 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 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 |
---|---|---|
|
@@ -121,7 +121,10 @@ Considerations and Limitations | |
a pipeline with no steps. We can work around this by allowing pipelines | ||
with no steps. | ||
|
||
3. Meta-estimators will delegate the setting and validation of | ||
3. ``feature_names_in_`` can be any 1-D ``Sequence``, such as an list or | ||
an ndarray. | ||
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. It might be worth noting that this allowance can avoid unnecessary memory consumption/copies, with reduced implementation complexity, although it may reduce usability a bit. |
||
|
||
4. Meta-estimators will delegate the setting and validation of | ||
``feature_names_in_`` to its inner estimators. The meta-estimator will | ||
define ``feature_names_in_`` by referencing its inner estimators. For | ||
example, the ``Pipeline`` can use ``steps[0].feature_names_in_`` as | ||
|
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.
But ndarray is not a sequence: numpy/numpy#2776
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.
Maybe "Iterable that returns a string" would be enough.
In our discussions, I think we want to make sure the feature names are strings.
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.
Hmm. We'd better accept Sequences and 1d array-likes whose elements are strings: pd.Index is not a Sequence.
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.