DeepSHAPExplanation<T>
Models & Types · AiDotNet.Interpretability.Explainers
Represents the result of a DeepSHAP analysis.
Implements: IFeatureAttribution<T>
Constructors
| Constructor | Summary |
|---|---|
DeepSHAPExplanation() |
Properties
| Property | Summary |
|---|---|
T ExpectedValue { get; set; } |
Gets or sets the expected (baseline) prediction value. |
T Prediction { get; set; } |
Gets or sets the actual prediction for this instance. |
Vector<T> Attributions { get; set; } |
Gets or sets the feature attributions (SHAP values). |
Vector<T> Instance { get; set; } |
Gets or sets the input instance. |
int NumSamples { get; set; } |
Gets or sets the number of background samples used. |
int OutputIndex { get; set; } |
Gets or sets the output index that was explained. |
string[] FeatureNames { get; set; } |
Gets or sets the feature names. |
Methods
| Method | Summary |
|---|---|
List<ValueTuple<string, T, T>> GetSortedAttributions() |
Gets attributions sorted by absolute value (most important first). |
T GetSumError() |
Verifies that attributions sum to (prediction - expected_value). |
Vector<T> GetFeatureAttributions() |
|
string ToString() |
Returns a human-readable summary. |