sample_from_datasets {tfdatasets} | R Documentation |
Samples elements at random from the datasets in datasets
.
Description
Samples elements at random from the datasets in datasets
.
Usage
sample_from_datasets(
datasets,
weights = NULL,
seed = NULL,
stop_on_empty_dataset = TRUE
)
Arguments
datasets |
A list ofobjects with compatible structure. |
weights |
(Optional.) A list of |
seed |
(Optional.) An integer, representing the random seed that will be used to create the distribution. |
stop_on_empty_dataset |
If |
Value
A dataset that interleaves elements from datasets
at random, according to
weights
if provided, otherwise with uniform probability.