dataset
#
Utilities for working with datasets.
Functions:
-
iter_dataset
–Iterate over a Hugging Face Dataset, yielding each 'row' as a dictionary.
iter_dataset
#
Iterate over a Hugging Face Dataset, yielding each 'row' as a dictionary.
Parameters:
-
dataset
(Dataset
) –The dataset to iterate over.
Yields:
-
dict[str, Any]
–A dictionary representing a single entry in the batch, where each key is a column name and the corresponding value is the entry in that column for the current row.