data_juicer.ops.grouper package¶
Submodules¶
data_juicer.ops.grouper.key_value_grouper module¶
- class data_juicer.ops.grouper.key_value_grouper.KeyValueGrouper(group_by_keys: List[str] | None = None, *args, **kwargs)[source]¶
Bases:
Grouper
Group samples to batched samples according values in given keys.
data_juicer.ops.grouper.naive_grouper module¶
Module contents¶
- class data_juicer.ops.grouper.NaiveGrouper(*args, **kwargs)[source]¶
Bases:
Grouper
Group all samples to one batched sample.
- class data_juicer.ops.grouper.KeyValueGrouper(group_by_keys: List[str] | None = None, *args, **kwargs)[source]¶
Bases:
Grouper
Group samples to batched samples according values in given keys.