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

Feature Request: Add functionality to pass split types like train, test in DatasetDict.map #7240

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jp1924
Copy link

@jp1924 jp1924 commented Oct 19, 2024

Hello datasets!

We often encounter situations where we need to preprocess data differently depending on split types such as train, valid, and test.

However, while DatasetDict.map has features to pass rank or index, there's no functionality to pass split types.
Therefore, I propose adding a 'with_splits' parameter to DatasetDict, which would allow passing the split type through fn_kwargs.

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.

1 participant