tensorflow / tensorflow/probability

Categorical features in logistic regression

Open
#94 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

good first issue
Dominant language
Jupyter Notebook
Stars
4.4k
Forks
1.1k
PR merge metrics
No merged PRs in 30d

Description

Hi,

I'm following the logistic regression example (https://github.com/tensorflow/probability/blob/master/tensorflow_probability/examples/logistic_regression.py) and trying to implement it with some real life data that has a mixture of numerical and categorical variables. Each of my categorical variables has a large number of elements though, and I'm wondering if one hot encoding is the best approach. Is there a better way of treating my categorical variables in TF/TF-p? Thanks.

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

The issue points to tensorflow_probability/examples/logistic_regression.py; read that example first and compare its treatment of inputs with the reported mixed numerical and categorical data. The request does not define a specific implementation, file change, test, or completion criterion, so scope and “done” would need maintainer clarification.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.