Add a Binarizer class
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- python, scikit-learn
- Domain
- data, machine-learning
Research direction
The issue asks for a Binarizer transformer in feature_engine that works inside a Pipeline without a ColumnTransformer. The reporter mentions a BaseDiscretizer subclass they wrote, and the sklearn Binarizer is the reference behaviour. Before starting, ask a maintainer whether they want this, since the issue has no reply in 820 days. Done means a transformer that binarizes selected variables, keeps column names, and has tests.
Written by the indexing model from the issue text.
Description
A clear and concise description of what the problem is.
I needed to binarize some features in a pipeline but saw that this wasn't currently implemented in the package; I instead used the sklearn Binarizer and ColumnTransformer classes. This wasn't ideal as I had to keep track of the new indexes at subsequent steps of the pipeline - one of the nice things about feature engine is that you don't have to worry about that.
Describe the solution you'd like
An implementation of a Binarizer class that bypasses the need for the corresponding sklearn class and that you can use directly within the Pipeline class instead of using ColumnTransformer.
Describe alternatives you've considered
I wrote a class that inherits from the BaseDiscretizer which works as described above.
Would it be OK for me to work on this and open a PR?
- Dominant language
- Python
- Stars
- 2.3k
- Forks
- 391
- Avg merge
- 11h 34m
- Merged PRs (30d)
- 11
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from feature-engine/feature_engine
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
feature-engine/feature_engine#1141 · 1 comment ·
Maintainers usually reply within 1 day
-
docs
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
feature-engine/feature_engine#393 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 3/5 1-2 days Newbie friendliness 68/100
feature-engine/feature_engine#1140 · 2 comments ·
Maintainers usually reply within 1 day
-
CategoricalImputer fails when fill_value is already a categoryPossibly taken @AryanRG claimed this 12 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 18/100
feature-engine/feature_engine#1113 · 2 comments ·
Maintainers usually reply within 1 day
-
OneHotEncoder loses a dummy name when it matches an encoded input columnPossibly taken @Aadrit555 claimed this 7 days ago. Open
Difficulty 3/5 Half a day Newbie friendliness 25/100
feature-engine/feature_engine#1106 · 1 comment ·
Maintainers usually reply within 1 day
All issues in feature-engine/feature_engine
Similar issues
-
needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
MakazhanAlpamys/Soup#3589 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
ClickHouse/clickhouse-connect#1266 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
biosustain/growthcurves_app#89 ·
Maintainers usually reply within 1 day
-
`LogProxyConsumer._on_relation_departed` raises `APIError` when the promtail service does not existOpen
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
canonical/loki-k8s-operator#695 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 1 day