ToDict#

class bayesflow.adapters.transforms.ToDict[source]#

Bases: Transform

Convert non-dict batches (e.g., pandas.DataFrame) to dict batches

classmethod from_config(config: dict, custom_objects=None)[source]#
get_config() dict[source]#
forward(data, **kwargs) dict[str, ndarray][source]#
inverse(data: dict[str, ndarray], **kwargs) dict[str, ndarray][source]#
__call__(data: dict[str, ndarray], *, inverse: bool = False, **kwargs) dict[str, ndarray]#

Call self as a function.

extra_repr() str#