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:
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')) |
This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.
Last updated from:d7a9803eb7. Checks:6 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel | OK | 105 | ||
| source / vignettes | OK | 162 | ||
| linux-release | OK | 107 | ||
| windows-devel | OK | 191 | ||
| windows-release | OK | 169 | ||
| wasm-release | OK | 102 |
Exports:aplime_bootstrapaplime_csiaplime_explainaplime_explaineraplime_knot_reportaplime_predict_xgboostaplime_repeataplime_vsi
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Bootstrap Intervals for Grouped MARS Coefficients | aplime_bootstrap |
| Coefficient Stability Index | aplime_csi |
| Fit a Local Weighted MARS Explanation | aplime_explain |
| Create an Adaptive Piecewise Explainer | aplime_explainer |
| Report Original MARS Hinge Knots | aplime_knot_report |
| Adapt XGBoost Predictions for AP-LIME | aplime_predict_xgboost |
| Repeat Local Explanations and Evaluate Stability | aplime_repeat |
| Variable Stability Index | aplime_vsi |
| Print an AP-LIME Explanation | print.aplime_explanation |
