Table of Contents

Class LimeExplanation<T>

Namespace
AiDotNet.Interpretability
Assembly
AiDotNet.dll

Represents a LIME (Local Interpretable Model-agnostic Explanations) explanation for a prediction.

public class LimeExplanation<T>

Type Parameters

T

The numeric type for calculations.

Inheritance
LimeExplanation<T>
Inherited Members

Constructors

LimeExplanation()

Initializes a new instance of the LimeExplanation class.

public LimeExplanation()

Properties

FeatureImportance

Gets or sets the feature importance scores for the explanation. Keys are feature indices, values are importance scores.

public Dictionary<int, T> FeatureImportance { get; set; }

Property Value

Dictionary<int, T>

Intercept

Gets or sets the intercept of the linear approximation.

public T Intercept { get; set; }

Property Value

T

LocalModelScore

Gets or sets the R-squared score of the local linear approximation.

public T LocalModelScore { get; set; }

Property Value

T

NumFeatures

Gets or sets the number of features used in the explanation.

public int NumFeatures { get; set; }

Property Value

int

PredictedValue

Gets or sets the predicted value for the explained instance.

public T PredictedValue { get; set; }

Property Value

T