LIME-Based Explanations with Interpretable Inputs Based on Ceteris Paribus Profiles
Overview
Local explanations of machine learning models describe, how features contributed to a single prediction. This package implements an explanation method based on LIME (Local Interpretable Model-agnostic Explanations, see Tulio Ribeiro, Singh, Guestrin (2016) doi:10.1145/2939672.2939778) in which interpretable inputs are created based on local rather than global behaviour of each original feature.
predict_surrogatefunction is added to provide easier interface of accessing lime/iml/localModel implementations of the LIME method. (this function wes moved toDALEXtra)
From NEWS.md in the release
Install
Health
ERRORtestsr-release-linux-x86_64
Running ‘testthat.R’ [9s/11s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(localModel)
> library(DALEX)
Welcome to DALEX (version: 2.5.4).
Find examples and detailed introduction at: http://ema.drwhy.ai/
Additional features will be available after installation of: ggpubr.
Use 'install_dependencies()' to get all suggested dependencies
> library(randomForest)
randomForest 4.7-1.2
Type rfNews() to see new features/changes/bug fixes.
>
> test_check("localModel")
Preparation of a new explainer is initiated
-> model label : randomForest ( [33m default [39m )
-> data : 500 rows 6 cols
-> target variable : not specified! ( [31m WARNING [39m )
-> predict function : yhat.randomForest will be used ( [33m default [39m )
-> predicted values : No value for predict function target column. ( [33m default [39m )
-> model_info : package randomForest , ver
...[truncated]...
[39m )
-> model_info : Model info detected classification task but 'y' is a NULL . ( [31m WARNING [39m )
-> model_info : By deafult classification tasks supports only numercical 'y' parameter.
-> model_info : Consider changing to numerical vector with 0 and 1 values.
-> model_info : Otherwise I will not be able to calculate residuals or loss function.
-> predicted values : numerical, min = 0.009202999 , mean = 0.464 , max = 0.9979422
-> residual function : difference between y and yhat ( [33m default [39m )
[32m A new explainer has been created! [39m
[ FAIL 1 | WARN 1 | SKIP 0 | PASS 19 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test_generic.R:7:3'): Plots work with different geoms ─────────────
Expected `{ ... }` to run silently.
Actual noise: messages.
[ FAIL 1 | WARN 1 | SKIP 0 | PASS 19 ]
Error:
! Test failures.
Execution halted- ERROR12 OK, 1 ERROR2026-10-18
- OK13 OK2026-09-09
- ERROR12 OK, 1 ERROR2026-09-04
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
Show 7 earlier changesHide 7 earlier changes
- OK13 OK2026-07-29
- ERROR12 OK, 1 ERROR2026-07-25
- OK13 OK2026-07-14
- ERROR11 OK, 2 ERROR2026-07-11
- OK13 OK2026-05-05
- ERROR12 OK, 1 ERROR2026-05-01
- OK14 OK2026-03-10
Documentation
- Help pages
- 7includes a package overview page
- Examples that run
- 100%5 run in a plain check
- Exported functions with examples
- 75%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 0%
Downloads
Repository
- PRs merged (all time)
- 83%
- Median days to close, 50 most recently updated closed issues
- 41
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
6 development-tooling and community-health practices detected across 5 families in the upstream repository
Checks run against github.com/modeloriented/localmodel on 2026-10-18.
Show all practicesHide 1 practice
Dependencies
Installing localModel adds 43 packages (17 with compiled code, 34 MB of source tarballs). Heaviest: ggplot2 6.0 MB, glmnet 2.7 MB, ingredients 2.4 MB.
Code & Tests
People & History
Previously maintained by Mateusz Staniak (0.3.11 to 0.3.12).
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- 0.5Latest
- RR 4.1.0 released · 2021-05-18
- RR 4.0.0 released · 2020-04-24
- 0.3.122019-12-18 · diff ↗
- RR 3.6.0 released · 2019-04-26
- 0.3.112019-04-14
- RR 3.5.0 released · 2018-04-23
Package metadata
- First published
- 2019-04-14
- Total releases
- 3 / 7 yrs
- License
- GPL
- Minimum R
- ≥ 3.5
- Download size
- 72 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("localModel")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-20, which the citation names so these numbers can be found later. More on citing and the projects behind them.