torch_concepts.nn.functional.selective_calibration

selective_calibration(c_confidence: Tensor, target_coverage: float) Tensor[source]

Selects concepts based on confidence scores and target coverage.

Parameters:
  • c_confidence – Concept confidence scores.

  • target_coverage – Target coverage.

Returns:

Thresholds to select confident predictions.

Return type:

Tensor