Skip to content

Commit 58ad41b

Browse files
committed
unify log_prob signature in PointApproximator [no ci]
ContinuousApproximator and BasicWorkflow allow passing the data positionally, we can allow the same for the PointApproximator.
1 parent 952862c commit 58ad41b

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

bayesflow/approximators/point_approximator.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -143,12 +143,7 @@ def sample(
143143

144144
return samples
145145

146-
def log_prob(
147-
self,
148-
*,
149-
data: Mapping[str, np.ndarray],
150-
**kwargs,
151-
) -> np.ndarray | dict[str, np.ndarray]:
146+
def log_prob(self, data: Mapping[str, np.ndarray], **kwargs) -> np.ndarray | dict[str, np.ndarray]:
152147
"""
153148
Computes the log-probability of given data under the parametric distribution(s) for given input conditions.
154149

0 commit comments

Comments
 (0)