-
-
Notifications
You must be signed in to change notification settings - Fork 26.2k
[MRG] ENH Adds categories='dtypes' option to OrdinalEncoder and OneHotEncoder #15396
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
Closed
thomasjpfan
wants to merge
34
commits into
scikit-learn:main
from
thomasjpfan:dtype_ordering_categories
Closed
Changes from all commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
6ba1d47
ENH Uses pandas categories when encoding
thomasjpfan fe5908d
TST Adds test for dropping
thomasjpfan e03ef4f
DOC Adds comments
thomasjpfan 20808c0
ENH Uses values instead
thomasjpfan 6706e33
TST Ordered dtypes
thomasjpfan 25c2bdf
TST Uses pip to install pandas
thomasjpfan 6cd2c62
TST Always install pandas
thomasjpfan 131e266
DOC Adds to user guide
thomasjpfan 24d9434
DOC Adds whats new
thomasjpfan 3545088
DOC Update whats new
thomasjpfan b127441
Merge remote-tracking branch 'upstream/master' into dtype_ordering_ca…
thomasjpfan 2b8fc5e
REV Revert build
thomasjpfan bd061dc
MNT Support python35
thomasjpfan 72a8ade
ENH Enable support for non dataframes
thomasjpfan 3d72106
DOC Includes fallback to auto in docs
thomasjpfan 53cb537
DOC Update comment
thomasjpfan b82eec2
CLN Address some joris's comments
thomasjpfan 3d6ff26
CLN Moves encoding to _encode
thomasjpfan 3834b54
CLN Less diffs
thomasjpfan 36ef623
DOC Adds comment regarding unknowns
thomasjpfan d76ddda
TST Adds pandas to osx
thomasjpfan 1a3e7ae
DOC Remove dtypes in user guide
thomasjpfan e54b5ee
ENH Only checks categories
thomasjpfan e0b69d8
DOC Adds tests for learnt categories
thomasjpfan cadf2e7
DOC Makes changes in _encode_check_unknown
thomasjpfan 8433076
Merge remote-tracking branch 'upstream/master' into dtype_ordering_ca…
thomasjpfan 4fb9784
CLN Smaller diff
thomasjpfan 37faa32
Merge remote-tracking branch 'upstream/master' into dtype_ordering_ca…
thomasjpfan 2407236
TST Adds test to check for nans
thomasjpfan b77b3e1
Merge remote-tracking branch 'upstream/master' into dtype_ordering_ca…
thomasjpfan 9b34ac5
DOC Move to 0.23
thomasjpfan 21f6342
TST Adds test for categories with more categories than training
thomasjpfan bd4ec03
Merge remote-tracking branch 'upstream/master' into dtype_ordering_ca…
thomasjpfan 6475789
Merge remote-tracking branch 'upstream/master' into dtype_ordering_ca…
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 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
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
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.
maybe this could be just part of 'auto' as mentioned in the comments.
But if we keep the 'dtypes' option, we should probably raise an error if a non-df is passed in.