-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature: adds threshold and max_categories parameter to RobustOrdinal…
…Encoder (#26) * feature: adds ThresholdOrdinalEncoder to preprocessors ThresholdOrdinalEncoder is based of sklearn.preprocessing.OrdinalEncoder. This encoder only encodes categories whose frequencies are above the given `threshold` and only encodes up to `max_categories`. * feature: adds 'threshold' and 'max_categories' parameters to 'RobustOrdinalEncoder' * change: removes ThresholdOrdinalEncoder * change: modifies order of fit and category manipulation in RobustOrdinalEncoder * fix: changes single quotes to double quotes to match style * change: moves self.features_under_threshold_ initialization to fit in RobustOrdinalEncoder * change: updated doc string and changed attribute name to `feature_idxs_no_categories_` Co-authored-by: Isabel Panepento <[email protected]>
- Loading branch information
Showing
2 changed files
with
133 additions
and
10 deletions.
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
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