PrototypeExplanation<T>

Models & Types · AiDotNet.Interpretability.Explainers

Represents the result of a Prototype-based explanation.

Constructors

Constructor Summary
PrototypeExplanation()

Properties

Property Summary
Dictionary<int, T> DistinguishingFeatures { get; set; } Gets or sets features that distinguish from the nearest contrast prototype.
Dictionary<int, T> FeatureDifferences { get; set; } Gets or sets feature differences from the nearest same-class prototype.
DistanceMetric DistanceMetric { get; set; } Gets or sets the distance metric used.
List<PrototypeMatch<T>> ContrastPrototypes { get; set; } Gets or sets prototypes with different class (contrast examples).
List<PrototypeMatch<T>> NearestPrototypes { get; set; } Gets or sets the nearest prototypes (regardless of class).
List<PrototypeMatch<T>> SameClassPrototypes { get; set; } Gets or sets prototypes with the same class (supporting evidence).
T Prediction { get; set; } Gets or sets the prediction value.
Vector<T> Input { get; set; } Gets or sets the input instance.
int PredictedClass { get; set; } Gets or sets the predicted class.
string[] FeatureNames { get; set; } Gets or sets the feature names.

Methods

Method Summary
string ToString() Returns a human-readable summary.