Skip to content

Commit 00ff927

Browse files
committed
Fix doc
1 parent 0ed2524 commit 00ff927

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

bayesflow/diagnostics/metrics/classifier_two_sample_test.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,11 @@ def classifier_two_sample_test(
2323
) -> float | Mapping[str, Any]:
2424
"""
2525
C2ST metric [1] between samples from two distributions computed using a neural classifier.
26-
Can be computationally expensive, since it involves training of a neural classifier.
26+
Can be computationally expensive if called in a loop[, since it needs to train the model
27+
for each set of samples.
2728
2829
Note: works best for large numbers of samples and averaged across different posteriors.
2930
30-
Code adapted from https://github.com/sbi-benchmark/sbibm/blob/main/sbibm/metrics/c2st.py
31-
3231
[1] Lopez-Paz, D., & Oquab, M. (2016). Revisiting classifier two-sample tests. arXiv:1610.06545.
3332
3433
Parameters

0 commit comments

Comments
 (0)