Skip to content

Commit 7703e58

Browse files
authored
encoding jupyter notebooks in examples folder closes #59 (#193)
* added encoding jupyter notebooks * updated encoding jupyter notebooks * updated the encoding notebooks
1 parent a1d87da commit 7703e58

File tree

10 files changed

+7273
-3480
lines changed

10 files changed

+7273
-3480
lines changed

examples/encoding/CountFrequencyEncoder.ipynb

Lines changed: 1013 additions & 0 deletions
Large diffs are not rendered by default.

examples/encoding/DecisionTreeEncoder.ipynb

Lines changed: 730 additions & 0 deletions
Large diffs are not rendered by default.

examples/encoding/MeanEncoder.ipynb

Lines changed: 704 additions & 0 deletions
Large diffs are not rendered by default.

examples/encoding/OneHotEncoder.ipynb

Lines changed: 1219 additions & 0 deletions
Large diffs are not rendered by default.

examples/encoding/OrdinalEncoder.ipynb

Lines changed: 911 additions & 0 deletions
Large diffs are not rendered by default.

examples/encoding/PRatioEncoder.ipynb

Lines changed: 923 additions & 0 deletions
Large diffs are not rendered by default.

examples/encoding/RareLabelEncoder.ipynb

Lines changed: 1054 additions & 0 deletions
Large diffs are not rendered by default.

examples/encoding/WoEEncoder.ipynb

Lines changed: 717 additions & 0 deletions
Large diffs are not rendered by default.

examples/encoding/categorical-encoders.ipynb

Lines changed: 0 additions & 3478 deletions
This file was deleted.

feature_engine/encoding/decision_tree.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414

1515
class DecisionTreeEncoder(BaseCategoricalTransformer):
1616
"""
17-
The DecisionTreeCategoricalEncoder() encodes categorical variables with predictions
17+
The DecisionTreeEncoder() encodes categorical variables with predictions
1818
of a decision tree model.
1919
2020
The categorical variable will be first encoded into integers with the
21-
OrdinalCategoricalEncoder(). The integers can be assigned arbitrarily to the
21+
OrdinalEncoder(). The integers can be assigned arbitrarily to the
2222
categories or following the mean value of the target in each category.
2323
2424
Then a decision tree will be fit using the resulting numerical variable to predict

0 commit comments

Comments
 (0)