Package: aplime 0.1.0

Vilda Purutçuoğlu

aplime: Adaptive Piecewise Local Model-Agnostic Explanations

Implements Adaptive Piecewise Local Interpretable Model-Agnostic Explanations (AP-LIME) and its second-order interaction extension (AP2-LIME) for interpreting predictions from machine learning models. The methods replace the conventional locally weighted linear surrogate in LIME with Multivariate Adaptive Regression Splines (MARS). AP-LIME uses additive piecewise-linear hinge functions, whereas AP2-LIME allows pairwise interactions between hinge functions. The package generates proximity-weighted local explanations, estimates feature contributions, evaluates local surrogate fit, and assesses explanation stability across repeated runs. Stability is measured using the Variables Stability Index (VSI) and Coefficients Stability Index (CSI), including normal-theory and percentile bootstrap confidence intervals. MARS terms with the same predictors, hinge directions, and interaction structure are matched independently of knot locations. Coefficients within matched groups are summarized by their arithmetic mean, while the original knot thresholds remain available for inspection. The MARS-based local explanation approach is discussed by Somuncuoglu and Purutcuoglu (2027, ISBN:978-1-041-34431-5), "Explainable AI Approaches in Biomedical Signals: A Case Study with Pima Indians Diabetes Dataset", in "Biomedical Data Science: A Focus on Signaling", CRC Press.

Authors:Abdullah Nuri Somuncuoğlu [aut], Vilda Purutçuoğlu [aut, cre]

aplime_0.1.0.tar.gz
aplime_0.1.0.zip(r-4.7-any)aplime_0.1.0.zip(r-4.6-any)
aplime_0.1.0.tar.gz(r-4.7-any)aplime_0.1.0.tar.gz(r-4.6-any)
aplime_0.1.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION
card.svg |card.png
aplime/json (API)

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

On CRAN:

Conda:

This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.

1.00 score 8 exports 4 dependencies

Last updated from:d7a9803eb7. Checks:6 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK105
source / vignettesOK162
linux-releaseOK107
windows-develOK191
windows-releaseOK169
wasm-releaseOK102

Exports:aplime_bootstrapaplime_csiaplime_explainaplime_explaineraplime_knot_reportaplime_predict_xgboostaplime_repeataplime_vsi

Dependencies:earthFormulaplotmoplotrix