Class ClassificationConformalPredictionSet
Represents a conformal prediction set for classification tasks.
public sealed class ClassificationConformalPredictionSet
- Inheritance
-
ClassificationConformalPredictionSet
- Inherited Members
Remarks
A conformal prediction set contains the class indices that are guaranteed (under standard conformal assumptions) to contain the true class with the configured confidence level.
For Beginners: Instead of returning a single class label, conformal prediction can return a set of possible classes. When the model is uncertain, the set tends to be larger. When the model is confident, the set often contains a single class.
Constructors
ClassificationConformalPredictionSet(int[][])
Initializes a new instance of the ClassificationConformalPredictionSet class.
public ClassificationConformalPredictionSet(int[][] classIndices)
Parameters
classIndicesint[][]The predicted class index sets per sample.
Properties
ClassIndices
Gets the predicted class index sets per sample.
public int[][] ClassIndices { get; }
Property Value
- int[][]
Remarks
The outer array corresponds to each input sample. Each inner array contains the class indices included in the conformal prediction set for that sample.