Diagnostics

Diagnostics#

sbi.diagnostics.calc_misspecification_logprob

Perform hypothesis test to check if estimator.log_prob(x_o) is unusually low.

sbi.diagnostics.calc_misspecification_mmd

Misspecification test based on MMD in data- or embedding space.

sbi.diagnostics.check_sbc

Return uniformity checks and data-averaged posterior checks for SBC.

sbi.diagnostics.check_tarp

check the obtained TARP credibitlity levels and expected coverage probabilities.

sbi.diagnostics.get_nltp

Return negative log prob of true parameters under the posterior.

sbi.diagnostics.LC2ST

L-C2ST: Local Classifier Two-Sample Test.

sbi.diagnostics.run_sbc

Run simulation-based calibration (SBC) or expected coverage.

sbi.diagnostics.run_tarp

Estimates coverage of samples given true values thetas with the TARP method.