Algorithm 1. LIME |
Require: Classifier f, Number of samples N Require: Instance x, and its interpretable version Require: Similarity kernel πx, Length of explanation K ← {} for i ∈ {1, 2, 3,..., N} do ← Sample around () ← ∪ (, f), ()) end for w ← K-Lasso(Z, K) ▷ with as features, f(z) as target return w |