1- from collections .abc import Sequence
1+ from collections .abc import Callable , Sequence
22import numpy as np
33
44from bayesflow .types import Shape
@@ -22,10 +22,10 @@ def __init__(
2222 p : Sequence [float ] = None ,
2323 logits : Sequence [float ] = None ,
2424 use_mixed_batches : bool = True ,
25- shared_simulator : Simulator | FunctionType = None ,
25+ shared_simulator : Simulator | Callable [[ Sequence [ int ]], dict [ str , any ]] = None ,
2626 ):
2727 """
28- Initialize a multi-model simulator that can generate data for mixture / model comparison problems.
28+ Initialize a multimodel simulator that can generate data for mixture / model comparison problems.
2929
3030 Parameters
3131 ----------
@@ -40,7 +40,7 @@ def __init__(
4040 use_mixed_batches : bool, optional
4141 If True, samples in a batch are drawn from different models. If False, the entire batch
4242 is drawn from a single model chosen according to the model probabilities. Default is True.
43- shared_simulator : Simulator or FunctionType , optional
43+ shared_simulator : Simulator or Callable , optional
4444 A shared simulator whose outputs are passed to all model simulators. If a function is
4545 provided, it is wrapped in a `LambdaSimulator` with batching enabled.
4646 """
0 commit comments