generator_dataset
GeneratorDataset
¶
Bases: FEDataset
A dataset from a generator function.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
generator |
Generator[Dict[str, Any], int, None]
|
The generator function to invoke in order to get a data sample. |
required |
samples_per_epoch |
int
|
How many samples should be drawn from the generator during an epoch. Note that the generator function will actually be invoked more times than the number specified here due to backend validation routines. |
required |
Source code in fastestimator/fastestimator/dataset/generator_dataset.py
summary
¶
Generate a summary representation of this dataset. Returns: A summary representation of this dataset.