tf.data.experimental.sample_from_datasets

View source on GitHub

Samples elements at random from the datasets in datasets.

tf.data.experimental.sample_from_datasets(
    datasets, weights=None, seed=None
)

Args:

Returns:

A dataset that interleaves elements from datasets at random, according to weights if provided, otherwise with uniform probability.

Raises: