ContrastiveExplanation<T>
Models & Types · AiDotNet.Interpretability.Explainers
Represents the result of a Contrastive explanation.
Constructors
| Constructor |
Summary |
ContrastiveExplanation() |
|
Properties
| Property |
Summary |
Dictionary<int, T> FeatureContributions { get; set; } |
Gets or sets feature contributions to the fact-vs-foil decision. |
List<PertinentFeature<T>> PertinentNegatives { get; set; } |
Gets or sets the pertinent negatives (features that could flip to foil). |
List<PertinentFeature<T>> PertinentPositives { get; set; } |
Gets or sets the pertinent positives (features supporting the fact). |
T FactScore { get; set; } |
Gets or sets the score for the fact class. |
T FoilScore { get; set; } |
Gets or sets the score for the foil class. |
Vector<T> Input { get; set; } |
Gets or sets the input instance. |
Vector<T> Prediction { get; set; } |
Gets or sets the model prediction. |
int FactClass { get; set; } |
Gets or sets the fact class (what was predicted). |
int FoilClass { get; set; } |
Gets or sets the foil class (the alternative). |
string FactClassName { get; set; } |
Gets or sets the name of the fact class. |
string FoilClassName { get; set; } |
Gets or sets the name of the foil class. |
string[] FeatureNames { get; set; } |
Gets or sets the feature names. |
Methods
| Method |
Summary |
string ToString() |
Returns a human-readable summary. |