| Algorithm 2 Sparse linear explanation using LIME. | |
| Require: Classifier f; Features number K; Instance x to be explained; Similarity kernel | |
| = SAMPLE_AROUND | |
| for in do | |
| end for | |
| = K-Lasso() | |
| return | ▹ Explanation for an individual predict |
| Algorithm 2 Sparse linear explanation using LIME. | |
| Require: Classifier f; Features number K; Instance x to be explained; Similarity kernel | |
| = SAMPLE_AROUND | |
| for in do | |
| end for | |
| = K-Lasso() | |
| return | ▹ Explanation for an individual predict |