Skip to content

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
@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

4 participants