Package: lime 0.5.4.9000

Emil Hvitfeldt

lime: Local Interpretable Model-Agnostic Explanations

When building complex models, it is often difficult to explain why the model should be trusted. While global measures such as accuracy are useful, they cannot be used for explaining why a model made a specific prediction. 'lime' (a port of the 'lime' 'Python' package) is a method for explaining the outcome of black box models by fitting a local model around the point in question an perturbations of this point. The approach is described in more detail in the article by Ribeiro et al. (2016) <doi:10.48550/arXiv.1602.04938>.

Authors:Emil Hvitfeldt [aut, cre], Thomas Lin Pedersen [aut], Michaël Benesty [aut]

lime_0.5.4.9000.tar.gz
lime_0.5.4.9000.zip(r-4.7)lime_0.5.4.9000.zip(r-4.6)lime_0.5.4.9000.zip(r-4.5)
lime_0.5.4.9000.tgz(r-4.6-x86_64)lime_0.5.4.9000.tgz(r-4.6-arm64)lime_0.5.4.9000.tgz(r-4.5-x86_64)lime_0.5.4.9000.tgz(r-4.5-arm64)
lime_0.5.4.9000.tar.gz(r-4.7-arm64)lime_0.5.4.9000.tar.gz(r-4.7-x86_64)lime_0.5.4.9000.tar.gz(r-4.6-arm64)lime_0.5.4.9000.tar.gz(r-4.6-x86_64)
lime_0.5.4.9000.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
lime/json (API)
NEWS

# Install 'lime' in R:
install.packages('lime', repos = c('https://tidymodels.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/tidymodels/lime/issues

Pkgdown/docs site:https://lime.data-imaginist.com

Uses libs:
  • c++– GNU Standard C++ Library v3
Datasets:

On CRAN:

Conda:

caretmodel-checkingmodel-evaluationmodelingcpp

11.99 score 492 stars 3 packages 860 scripts 4.3k downloads 8 mentions 18 exports 30 dependencies

Last updated from:1c9f97478b. Checks:13 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64OK209
linux-devel-x86_64OK231
source / vignettesOK262
linux-release-arm64OK194
linux-release-x86_64OK209
macos-release-arm64OK186
macos-release-x86_64OK365
macos-oldrel-arm64OK163
macos-oldrel-x86_64OK286
windows-develOK181
windows-releaseOK174
windows-oldrelOK178
wasm-releaseOK159

Exports:.load_image_example.load_text_exampleas_classifieras_regressordefault_tokenizeexplaininteractive_text_explanationslimemodel_typeplot_explanationsplot_featuresplot_image_explanationplot_superpixelsplot_text_explanationspredict_modelrender_text_explanationsslictext_explanations_output

Dependencies:assertthatclicodetoolscpp11farverforeachggplot2glmnetgluegowergtableisobanditeratorslabelinglatticelifecycleMatrixR6RColorBrewerRcppRcppEigenrlangS7scalesshapestringisurvivalvctrsviridisLitewithr

Understanding lime

Rendered fromUnderstanding_lime.Rmdusingknitr::rmarkdownon May 10 2026.

Last update: 2025-12-09
Started: 2017-09-11

Readme and manuals

Help Manual

Help pageTopics
Indicate model type to limeas_classifier as_regressor
Default function to tokenizedefault_tokenize
Explain model predictionsexplain explain.character explain.data.frame explain.imagefile
Interactive explanationsinteractive_text_explanations render_text_explanations text_explanations_output
Create a model explanation function based on training datalime lime.character lime.data.frame lime.imagefile
Methods for extending limes model supportmodel_support model_type predict_model
Plot a condensed overview of all explanationsplot_explanations
Plot the features in an explanationplot_features
Display image explanations as superpixel areasplot_image_explanation
Test super pixel segmentationplot_superpixels
Plot text explanationsplot_text_explanations
Stop words liststop_words_sentences
Sentence corpus - test parttest_sentences
Sentence corpus - train parttrain_sentences