tensorflow / tensorflow/metadata

Utility to create a feature_spec from a schema

Open
#18 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
110
Forks
62
PR merge metrics
No merged PRs in 30d

Description

Converting a schema to a feature_spec = {feature.name: tf.io.FixedLenFeature(...) for feature in schema.feature} is a very common task. There is a utility to do this already in tensorfow transform, but there are many times where I don't need tensorflow transform except for that one function. I think it should belong in this repo instead.

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

Compare the requested conversion with tensorflow_transform/tf_metadata/schema_utils.py lines 201-260, then inspect this repository for the appropriate schema utility location and related tests. Done means providing an equivalent utility here without requiring TensorFlow Transform and verifying its feature_spec output.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, tensorflow
Domain
machine-learning
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.