Skip to content

fmeffects

Model-Agnostic Interpretations with Forward Marginal Effects

v0.1.4 · Nov 5, 2024 · LGPL-3

Description

Create local, regional, and global explanations for any machine learning model with forward marginal effects. You provide a model and data, and 'fmeffects' computes feature effects. The package is based on the theory in: C. A. Scholbeck, G. Casalicchio, C. Molnar, B. Bischl, and C. Heumann (2022) <doi:10.48550/arXiv.2201.08837>.

Downloads

3.3K

Last 30 days

2256th

10.6K

Last 90 days

39.4K

Last year

Trend: -13.5% (30d vs prior 30d)

CRAN Check Status

1 ERROR
13 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-macos-arm64 ERROR
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK
Check details (1 non-OK)
ERROR r-devel-macos-arm64

re-building of vignette outputs

Error(s) in re-building vignettes:
--- re-building ‘fme_theory.Rmd’ using rmarkdown
--- finished re-building ‘fme_theory.Rmd’

--- re-building ‘fmeffects.Rmd’ using rmarkdown

Quitting from fmeffects.Rmd:121-127 [unnamed-chunk-11]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/purrr_error_indexed>
Error:
ℹ In index: 1.
Caused by error in `.__Task__col_roles()`:
! Assertion on 'names(rhs)' failed: Names must be a permutation of set {'feature','target','name','order','stratum','group','offset','weights_learner','weights_measure'}, but has extra elements {'always_included'}.
---
Backtrace:
     ▆
  1. ├─parallel (local) workRSOCK()
  2. │ └─parallel:::workLoop(...)
  3. │   └─parallel:::workCommand(master)
  4. │     ├─base::tryCatch(...)
  5. │     │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
  6. │     │   └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
  7. │     │     └─base (local) doTryCatch(return(expr
...[truncated]...
__Learner__predict_newdata(...)
 56. └─mlr3 (local) `<fn>`(base::quote(`<named list>`))
 57.   └─mlr3:::.__Task__col_roles(...)
 58.     └─checkmate::assert_names(names(rhs), "unique", permutation.of = mlr_reflections$task_col_roles[[self$task_type]])
 59.       └─checkmate::makeAssertion(x, res, .var.name, add)
 60.         └─checkmate:::mstop(...)
 61.           └─base::stop(simpleError(sprintf(msg, ...), call.))
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Error: processing vignette 'fmeffects.Rmd' failed with diagnostics:
ℹ In index: 1.
Caused by error in `.__Task__col_roles()`:
! Assertion on 'names(rhs)' failed: Names must be a permutation of set {'feature','target','name','order','stratum','group','offset','weights_learner','weights_measure'}, but has extra elements {'always_included'}.
--- failed re-building ‘fmeffects.Rmd’

SUMMARY: processing the following file failed:
  ‘fmeffects.Rmd’

Error: Vignette re-building failed.
Execution halted

Check History

ERROR 13 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Mar 10, 2026
ERROR r-devel-macos-arm64

re-building of vignette outputs

Error(s) in re-building vignettes:
--- re-building ‘fme_theory.Rmd’ using rmarkdown
--- finished re-building ‘fme_theory.Rmd’

--- re-building ‘fmeffects.Rmd’ using rmarkdown

Quitting from fmeffects.Rmd:121-127 [unnamed-chunk-11]
~~~~~~~~~~~~~~~~~~~
...[truncated]...
,'offset','weights_learner','weights_measure'}, but has extra elements {'always_included'}.
--- failed re-building ‘fmeffects.Rmd’

SUMMARY: processing the following file failed:
  ‘fmeffects.Rmd’

Error: Vignette re-building failed.
Execution halted

Reverse Dependencies (1)

suggests

Dependency Network

Dependencies Reverse dependencies checkmate cli data.table partykit ggparty ggplot2 cowplot R6 testthat marginaleffects fmeffects

Version History

new 0.1.4 Mar 10, 2026
updated 0.1.4 ← 0.1.3 diff Nov 4, 2024
updated 0.1.3 ← 0.1.2 diff Jun 7, 2024
updated 0.1.2 ← 0.1.1 diff Mar 6, 2024
updated 0.1.1 ← 0.1.0 diff Sep 25, 2023
new 0.1.0 Jul 18, 2023