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

add parameter set_batch_size_to_split_size to DatasetDict.map #155

Merged
merged 3 commits into from
Sep 30, 2024

Conversation

ArneBinder
Copy link
Owner

@ArneBinder ArneBinder commented Sep 17, 2024

from the docstring:

set_batch_size_to_split_size: If enabled, set the batch_size to the size of the respective split
    when calling map() on it. This is useful to transform whole splits when using it in
    combination with batched=True.

@ArneBinder ArneBinder added the enhancement New feature or request label Sep 17, 2024
Copy link

codecov bot commented Sep 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.35%. Comparing base (ef8f2d7) to head (8690c7b).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #155      +/-   ##
==========================================
+ Coverage   92.34%   92.35%   +0.01%     
==========================================
  Files          10       10              
  Lines         901      903       +2     
==========================================
+ Hits          832      834       +2     
  Misses         69       69              
Flag Coverage Δ
92.35% <100.00%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ArneBinder ArneBinder force-pushed the map_set_max_batch_size branch from 5859d92 to e155af2 Compare September 30, 2024 14:48
@ArneBinder ArneBinder merged commit 8fc0cc9 into main Sep 30, 2024
4 checks passed
@ArneBinder ArneBinder deleted the map_set_max_batch_size branch September 30, 2024 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant