Utils

Utility functions and metrics.

contra_volume(contra, X[, confidence_level, ...])

Estimates conditional CONTRA-set volumes by Monte Carlo integration.

coverage_gap(labels, covered)

Computes the range of empirical coverage across labeled groups.

cqr_volume(cqr, X)

Computes volumes of conformalized quantile hyperrectangles.

hpd_volume(hpd, X[, confidence_level, n_samples])

Estimates conditional HPD-set volumes by Monte Carlo integration.

lp_volume(estimator, X, d, *[, ...])

Computes volumes of Lp-ball regions predicted by a conformal estimator.