Skip to content

Commit 946e405

Browse files
committed
add Raise to docstring if approximator is not ContinuousApproximator or SummaryNetwork
1 parent dbdbe2e commit 946e405

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

bayesflow/diagnostics/metrics/mmd_hypothesis_test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ def compute_mmd_hypothesis_test(
172172
------
173173
ValueError
174174
- If the shapes of observed and reference data do not match on dimensions besides the first one.
175+
- If approximator is not an instance of ContinuousApproximator or SummaryNetwork.
175176
"""
176177
if observed_data.shape[1:] != reference_data.shape[1:]:
177178
raise ValueError(

0 commit comments

Comments
 (0)