Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support features in metadata configs #7182

Merged
merged 3 commits into from
Oct 9, 2024
Merged

Conversation

albertvillanova
Copy link
Member

@albertvillanova albertvillanova commented Sep 30, 2024

Support features in metadata configs, like:

configs:
  - config_name: default
    features:
      - name: id
        dtype: int64
      - name:  name
        dtype: string
      - name: score
        dtype: float64

This will allow to avoid inference of data types.

Currently, we allow passing this information in the dataset_info (instead of configs) field, but this is not intuitive and it is not properly documented.

TODO:

  • Document usage

@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@albertvillanova
Copy link
Member Author

The CI issue is unrelated:

Copy link
Member

@lhoestq lhoestq left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, let's see if it works and we can add it to the datasets hub documentation for the viewer (e.g. "how to enforce certain column types in the viewer")

@albertvillanova albertvillanova merged commit afe875a into main Oct 9, 2024
15 checks passed
@albertvillanova albertvillanova deleted the support-features-config branch October 9, 2024 16:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants