EnsembleIndexedDataset#

class bayesflow.datasets.EnsembleIndexedDataset(dataset: PyDataset, member_names: Sequence[str], data_reuse: float = 1.0, **kwargs)[source]#

Bases: PyDataset

on_epoch_end()[source]#

Method called at the end of every epoch.

property max_queue_size#
property num_batches#

Number of batches in the PyDataset.

Returns:

The number of batches in the PyDataset or None to indicate that the dataset is infinite.

on_epoch_begin()#

Method called at the beginning of every epoch.

property use_multiprocessing#
property workers#