IntegratedGradientsExplanation<T>

Models & Types · AiDotNet.Interpretability.Explainers

Represents the result of an Integrated Gradients analysis.

Implements: IFeatureAttribution<T>

Constructors

Constructor Summary
IntegratedGradientsExplanation()

Properties

Property Summary
T BaselinePrediction { get; set; } Gets or sets the prediction at the baseline.
T ConvergenceDelta { get; set; } Gets or sets the convergence delta (difference between sum of attributions and prediction difference).
T InputPrediction { get; set; } Gets or sets the prediction at the input.
Vector<T> Attributions { get; set; } Gets or sets the feature attributions.
Vector<T> Baseline { get; set; } Gets or sets the baseline used.
Vector<T> Input { get; set; } Gets or sets the input instance.
int NumSteps { get; set; } Gets or sets the number of integration steps 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>> GetSortedAttributions() Gets attributions sorted by absolute value (most important first).
Vector<T> GetFeatureAttributions()
string ToString() Returns a human-readable summary.