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.5K

Last 30 days

2168th

12.5K

Last 90 days

47.2K

Last year

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

CRAN Check Status

2 ERROR
11 OK
Show all 13 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-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 ERROR
r-release-macos-x86_64 ERROR
r-release-windows-x86_64 OK
Check details (2 non-OK)
ERROR r-release-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/rlang_error>
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. └─fmeffects::fme(...)
  2.   └─ForwardMarginalEffect$new(makePredictor(model, data), features = features, ...
  3.     └─private$fme(...)
  4.       └─furrr::future_map_dbl(...)
  5.         └─furrr:::furrr_map_template(...)
  6.           └─furrr:::furrr_template(...)
  7.             └─furrr:::furrr_try_catch(...)
  8.               └─base::tryCatch(expr = expr, purrr_error_indexed = rethrow_purrr_error_indexed)
  9.                 └─base (local) tryCatchList(expr, classes, parentenv, handlers)
 10.                   └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
 11.                     └─value[[3L]](cond)
 12.                       └─rlang::cnd_signal(cnd)
 13.                         └─rlang:::signal_abort(cnd)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Error: processing vignette 'fmeffects.Rmd' failed with diagnostics:
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
ERROR r-release-macos-x86_64

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/rlang_error>
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. └─fmeffects::fme(...)
  2.   └─ForwardMarginalEffect$new(makePredictor(model, data), features = features, ...
  3.     └─private$fme(...)
  4.       └─furrr::future_map_dbl(...)
  5.         └─furrr:::furrr_map_template(...)
  6.           └─furrr:::furrr_template(...)
  7.             └─furrr:::furrr_try_catch(...)
  8.               └─base::tryCatch(expr = expr, purrr_error_indexed = rethrow_purrr_error_indexed)
  9.                 └─base (local) tryCatchList(expr, classes, parentenv, handlers)
 10.                   └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
 11.                     └─value[[3L]](cond)
 12.                       └─rlang::cnd_signal(cnd)
 13.                         └─rlang:::signal_abort(cnd)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Error: processing vignette 'fmeffects.Rmd' failed with diagnostics:
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

6 tracked
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