LIME Feature Plot Calculator

Explore how individual features support or oppose predictions, test explanation stability, inspect local fidelity, compare configurations, and export polished LIME visualizations instantly for analysis.

Local explanation results

Run the calculator to inspect the selected prediction.

RankFeatureOriginal valueConditionCoefficientContributionDirectionAbsolutePercentStability
Checks:
    
                    

    1. Feature explanation data

    Enter interpretable feature rules, activation values, and local coefficients.

    Columns: feature,value,condition,activation,coefficient,comparison,type,group
    UseFeatureOriginal valueInterpretable conditionActivationLIME coefficientComparison coefficientTypeGroup

    2. Prediction and model settings

    3. LIME configuration

    4. Plot, filtering, and comparison options

    5. Fidelity diagnostics and stability analysis

    Leave empty to generate a reproducible synthetic diagnostic sample for interface testing.

    Formula used

    The local surrogate estimates the model near one selected observation. Each interpretable feature receives a coefficient. Its active value produces a local contribution.

    g(x) = β₀ + Σ βⱼzⱼ
    arg ming Σ πx(zᵢ)[f(zᵢ) − g(zᵢ)]² + Ω(g)

    The calculator reconstructs the local prediction from the intercept and contributions. Fidelity metrics compare surrogate predictions with model predictions. Stability estimates coefficient variation across repeated seeded runs.

    How to use

    1. Enter feature names, values, conditions, activations, and LIME coefficients.
    2. Choose classification or regression, then enter the prediction and intercept.
    3. Adjust perturbation, kernel, feature selection, and surrogate settings.
    4. Choose plot filters, sorting, comparison, grouping, and display options.
    5. Paste perturbation diagnostics when available for measured fidelity results.
    6. Generate the explanation, inspect warnings, and export the report.

    Example feature data

    FeatureValueConditionActivationCoefficientInterpretation
    Annual income72000Income > 6500010.182Supports approval
    Debt-to-income0.39DTI > 0.361-0.173Opposes approval
    Recent inquiries3Inquiries > 21-0.124Opposes approval

    Interpretation and limitations

    LIME explains one prediction locally, not the entire model. Large positive contributions support the selected output. Large negative contributions oppose it.

    Explanations can change with sampling, seeds, discretization, and kernel width. A high local fidelity score improves confidence. It does not prove causality or global importance.

    Use domain knowledge before acting on any explanation. Compare several seeds and nearby observations. Investigate unstable or highly correlated features carefully.

    Frequently asked questions

    What does a LIME feature plot show?

    It shows which local feature rules support or oppose one selected prediction.

    Are coefficients and contributions identical?

    They match when the interpretable activation equals one. Otherwise, contribution equals coefficient multiplied by activation.

    Why can LIME results change?

    LIME uses sampled perturbations. Different seeds, samples, and kernels can produce different local fits.

    What is local fidelity?

    Local fidelity measures how closely the surrogate follows the original model near the selected observation.

    What kernel width should I use?

    Smaller widths emphasize nearby samples. Larger widths create broader but less local explanations.

    Can this calculator train a black-box model?

    No. It visualizes supplied LIME outputs and diagnostics rather than training the original model.

    How should categorical features be entered?

    Enter a readable rule, such as Color equals Blue, and set activation to one when active.

    Is a LIME contribution causal?

    No. It describes local model behavior and does not establish a causal relationship.

    How can I test explanation stability?

    Run several seeds, compare coefficient signs, and inspect each feature’s variation and stability score.

    How is LIME different from SHAP?

    LIME fits a local surrogate. SHAP uses game-theoretic attribution with different assumptions and properties.

    Related Calculators

    Feature Importance Bar ChartPermutation Importance PlotSHAP Summary PlotSHAP Dependence PlotSHAP Force PlotSHAP Waterfall PlotCoefficient PlotRegularisation Path PlotMutual Information Bar ChartMissing-Value Heatmap

    Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.