make_simulator#
- bayesflow.simulators.make_simulator(arg, *_, **__)[source]#
- bayesflow.simulators.make_simulator(simulator: Simulator)
- bayesflow.simulators.make_simulator(fn: Callable, **kwargs)
- bayesflow.simulators.make_simulator(objs: Sequence[LambdaType], obj_kwargs: Mapping[str, dict[str, any]] = None, meta_fn: Callable[[], dict[str, ndarray]] = None, **kwargs)
- bayesflow.simulators.make_simulator(objs: Mapping[str, LambdaType], obj_kwargs: Mapping[str, dict[str, any]] = None, meta_fn: Callable[[], dict[str, ndarray]] = None, **kwargs)
This is a dispatch function that will accept a list of simulators (callables) returning dictionaries with simulated outputs. The outputs of simulators will be passed to following simulators if the latter accept keyword arguments associated with the keys of previous outputs.