Package: midr 0.6.1.900


Ryoichi Asashiba
midr: Learning from Black-Box Models by Maximum Interpretation Decomposition
The goal of 'midr' is to provide a model-agnostic method for interpreting and explaining black-box predictive models by creating a globally interpretable surrogate model. The package implements 'Maximum Interpretation Decomposition' (MID), a functional decomposition technique that finds an optimal additive approximation of the original model. This approximation is achieved by minimizing the squared error between the predictions of the black-box model and the surrogate model. The theoretical foundations of MID are described in Iwasawa & Matsumori (2025) [Forthcoming], and the package itself is detailed in Asashiba et al. (2025) <doi:10.48550/arXiv.2506.08338>.
Authors:
midr_0.6.1.900.tar.gz
midr_0.6.1.900.zip(r-4.7)midr_0.6.1.900.zip(r-4.6)midr_0.6.1.900.zip(r-4.5)
midr_0.6.1.900.tgz(r-4.6-x86_64)midr_0.6.1.900.tgz(r-4.6-arm64)midr_0.6.1.900.tgz(r-4.5-x86_64)midr_0.6.1.900.tgz(r-4.5-arm64)
midr_0.6.1.900.tar.gz(r-4.7-arm64)midr_0.6.1.900.tar.gz(r-4.7-x86_64)midr_0.6.1.900.tar.gz(r-4.6-arm64)midr_0.6.1.900.tar.gz(r-4.6-x86_64)
midr_0.6.1.900.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
card.svg |card.png
midr/json (API)
NEWS
| # Install 'midr' in R: |
| install.packages('midr', repos = c('https://ryo-asashi.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/ryo-asashi/midr/issues
Pkgdown/docs site:https://ryo-asashi.github.io
actuarialimlinterpretable-machine-learningxaicpp
Last updated from:510310eef8. Checks:13 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-arm64 | OK | 143 | ||
| linux-devel-x86_64 | OK | 137 | ||
| source / vignettes | OK | 171 | ||
| linux-release-arm64 | OK | 141 | ||
| linux-release-x86_64 | OK | 159 | ||
| macos-release-arm64 | OK | 204 | ||
| macos-release-x86_64 | OK | 261 | ||
| macos-oldrel-arm64 | OK | 175 | ||
| macos-oldrel-x86_64 | OK | 321 | ||
| windows-devel | OK | 135 | ||
| windows-release | OK | 152 | ||
| windows-oldrel | OK | 170 | ||
| wasm-release | OK | 110 |
Exports:as.midlistcolor.themecolor.theme.envcolor.theme.infofactor.encoderfactor.frameget.linkget.yhatggmidinterpretlabels<-mid.breakdownmid.conditionalmid.effectmid.fmid.importancemid.plotsmid.termsmidlistnumeric.encodernumeric.framepar.midrscale_color_themescale_colour_themescale_fill_themeset.color.themetheme_midrweighted.loss
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Color Themes for Graphics | color.theme |
| Retrieve Color Theme Information | color.theme.env color.theme.info |
| Subset MID Objects | extract.midlist [.midlist [.midrib [[.midrib |
| Encoder for Qualitative Variables | factor.encoder factor.frame |
| Extended Parametric Link Functions | get.link |
| Wrapper Prediction Function | get.yhat get.yhat.AccurateGLM get.yhat.coxph get.yhat.default get.yhat.fitlist get.yhat.flexsurvreg get.yhat.gam get.yhat.glm get.yhat.glmnet get.yhat.ksvm get.yhat.lm get.yhat.mboost get.yhat.mid get.yhat.mids get.yhat.model_fit get.yhat.ObliqueForest get.yhat.randomForest get.yhat.ranger get.yhat.rfsrc get.yhat.rpart get.yhat.rpf get.yhat.svm get.yhat.workflow |
| Plot MID Component Function with ggplot2 | autoplot.mid ggmid ggmid.mid |
| Plot MID Breakdown with ggplot2 | autoplot.midbrk ggmid.midbrk |
| Compare MID Breakdowns with ggplot2 | autoplot.midbrks ggmid.midbrks |
| Plot MID Conditional Expectation with ggplot2 | autoplot.midcon ggmid.midcon |
| Compare MID Conditional Expectations with ggplot2 | autoplot.midcons ggmid.midcons |
| Plot MID Importance with ggplot2 | autoplot.midimp ggmid.midimp |
| Compare MID Importances with ggplot2 | autoplot.midimps ggmid.midimps |
| Compare MID Component Functions with ggplot2 | autoplot.mids ggmid.mids |
| Fit MID Models | interpret interpret.default interpret.formula |
| Label MID Objects | labels.midlist labels.midrib labels<- labels<-.midlist labels<-.midrib |
| Calculate MID Breakdown | mid.breakdown |
| Calculate MID Conditional Expectation | mid.conditional |
| Evaluate Single MID Component Functions | mid.effect mid.f |
| Calculate MID Importance | mid.importance |
| Plot Multiple MID Component Functions | mid.plots |
| Extract Terms from MID Models | mid.terms |
| Combine MID Objects | as.midlist midlist |
| Encoder for Quantitative Variables | numeric.encoder numeric.frame |
| Plot MID Component Function | plot.mid |
| Plot MID Breakdown | plot.midbrk |
| Compare MID Breakdowns | plot.midbrks |
| Plot MID Conditional Expectation | plot.midcon |
| Compare MID Conditional Expectations | plot.midcons |
| Plot MID Importance | plot.midimp |
| Compare MID Importances | plot.midimps |
| Compare MID Component Functions | plot.mids |
| Predict Method for fitted MID Models | predict.mid predict.mids |
| Print MID Models | print.mid print.mids |
| Color Theme Scales for ggplot2 Graphics | scale_color_theme scale_colour_theme scale_fill_theme |
| Register Color Themes | set.color.theme |
| Calculate MID-Derived Shapley Values | shapviz.mid |
| Summarize MID Models | summary.mid summary.mids |
| Default Plotting Themes | par.midr theme_midr |
| Weighted Loss Function | weighted.loss |