tensorflow / tensorflow/metadata
Utility to create a feature_spec from a schema
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
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.
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