/ingredients

Model ingredients - model level feature effects and feature importance

Primary LanguageR

ingredients: Effects and Importances of Model Ingredients

CRAN_Status_Badge Build Status Coverage Status Total Downloads

Collection of tools for assessment of feature importance and feature effects.

Key functions are:

  • feature_importance() for assessment of global level feature importance,
  • ceteris_paribus() for calculation of the Ceteris Paribus / What-If Profiles (read more at https://pbiecek.github.io/PM_VEE/ceterisParibus.html),
  • calculate_oscillations() for calculation of the Ceteris Paribus Oscillations (read more at https://pbiecek.github.io/PM_VEE/ceterisParibusOscillations.html),
  • ceteris_paribus_2d() for Ceteris Paribus 2D Profiles (read more at https://pbiecek.github.io/PM_VEE/ceterisParibus2d.html),
  • partial_dependency() for Partial Dependency Plots,
  • conditional_dependency() for Conditional Dependency Plots also called M Plots,
  • accumulated_dependency() for Accumulated Local Effects Plots,
  • aggregate_profiles() and cluster_profiles() for aggregation of Ceteris Paribus Profiles,
  • theme_drwhy() with a ggplot2 skin for all plots,
  • generic print() and plot() for better usability of selected explainers.

The package ingredients is a part of the DrWhy.AI universe.

Interactive plot in D3

feature_importance() and ceteris_paribus() also work with D3! see an example plotD3

Install

Install from GitHub

devtools::install_github("ModelOriented/ingredients")