CounterfactualExplanation<T>
Models & Types · AiDotNet.Interpretability
Represents a counterfactual explanation showing minimal changes needed for a different outcome.
Constructors
| Constructor | Summary |
|---|---|
CounterfactualExplanation() |
Initializes a new instance of the CounterfactualExplanation class. |
Properties
| Property | Summary |
|---|---|
Dictionary<int, T> FeatureChanges { get; set; } |
Gets or sets the feature changes made. |
T Distance { get; set; } |
Gets or sets the total distance between original and counterfactual. |
Tensor<T> CounterfactualInput { get; set; } |
Gets or sets the counterfactual input (modified version). |
Tensor<T> CounterfactualPrediction { get; set; } |
Gets or sets the counterfactual prediction. |
Tensor<T> OriginalInput { get; set; } |
Gets or sets the original input. |
Tensor<T> OriginalPrediction { get; set; } |
Gets or sets the original prediction. |
int MaxChanges { get; set; } |
Gets or sets the maximum number of changes allowed. |