bayesflow-org/bayesflow

[FEATURE] H5Dataset

Open

#605 opened on Jan 8, 2026

View on GitHub
 (0 comments) (0 reactions) (0 assignees)Python (85 forks)auto 404
featuregood first issue

Repository metrics

Stars
 (694 stars)
PR merge metrics
 (PR metrics pending)

Description

Is your feature request related to a problem? Please describe. Special support for .h5 files would be nice. Currently, the user has to supply this themselves, as it is not a case covered by the generic DiskDataset.

Describe the solution you'd like Given a single .h5 file with appropriate internal structure, the H5Dataset class should be able to load batches of simulations without further help from the user.

Describe alternatives you've considered We currently don't provide alternatives.

Additional context We should make sure the "appropriate internal structure" of the .h5 file is easy to achieve and is according to best-practices with HDF5, particularly with respect to varying sequence-lengths of the simulations. We could provide helper methods to save simulations in such a way that they are compatible with the dataset class.

Contributor guide