tensorflow / tensorflow/recommenders

[Question] How to create embeddings from one-hot-encoded features?

Open
#422 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
2k
Forks
300
PR merge metrics
No merged PRs in 30d

Description

Hello!

In my model I have user_id , user_gender, user_age (for query) and movie_id (for candidate) features.

  1. How to deal with situations where I have a feature with only few options like user_gender (M, F, -)? What would be the best way to create an embedding for It?
  2. Creating a StringLookup with a 3 item vocab and then an embedding with dimension 32 would be to much?
  3. How to insert one-hot-encoding this feature when creating the embedding?

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

No file, test, or entry point is named; start by clarifying whether this is a documentation request or an implementation change and which example or model is in scope. The issue does not define a concrete completion criterion yet.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.