tidymodels / tidymodels/embed

hierarchical target encoding

Open
#246 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature target encoding
Dominant language
R
Stars
146
Forks
23
PR merge metrics
No merged PRs in 30d

Description

Furthermore, for categorical attributes with an inherent hierarchical structure, like ZIP codes, the preprocessing scheme can directly leverage the hierarchy by blending statistics at the various levels of aggregation.

https://dl.acm.org/doi/10.1145/507533.507538

We would need to select the right columns, and properly add another argument, that takes a formula that describes the hierarchy

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the linked ACM paper to understand hierarchical target encoding. Then determine which categorical columns and hierarchy levels the issue should support, and define the formula argument and expected blending behavior. Done means the selected columns and hierarchy can be expressed and used by the preprocessing scheme.

Written by the indexing model from the issue text.

Assessment

Tech stack
r
Domain
data, machine-learning
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.