|
Algorithm 2 Hybrid LIME–SHAP Explanation Generation |
Require: Decision , Model M, Feature set
Ensure: Hybrid feature importance for all
-
1:
Input: Decision d, Model M, Feature set F
-
2:
Output: Hybrid feature importance
-
3:
Step 1: LIME Approximation
-
4:
for each feature do
-
5:
Compute LIME importance
-
6:
end for
-
7:
Step 2: SHAP Refinement
-
8:
for each feature do
-
9:
if features based on then
-
10:
Compute SHAP value
-
11:
Compute hybrid importance
-
12:
else
-
13:
Set
-
14:
end if
-
15:
end for
-
16:
Step 3: Multi-Model Aggregation
-
17:
if multiple models are used then
-
18:
for each feature do
-
19:
Compute aggregated importance
-
20:
end for
-
21:
end if
-
22:
Return: or
|