GithubHelp home page GithubHelp logo

modeloriented / ingredients Goto Github PK

View Code? Open in Web Editor NEW
37.0 8.0 19.0 222.93 MB

Effects and Importances of Model Ingredients

Home Page: https://modeloriented.github.io/ingredients/

License: GNU General Public License v3.0

R 99.63% CSS 0.37%

ingredients's Introduction

Model Ingredients

R build status Coverage Status CRAN_Status_Badge Total Downloads

Overview

The ingredients package is a collection of tools for assessment of feature importance and feature effects. It is imported and used to compute model explanations in multiple packages e.g. DALEX, modelStudio, arenar.

The philosophy behind ingredients explanations is described in the Explanatory Model Analysis: Explore, Explain, and Examine Predictive Models e-book. The ingredients package is a part of DrWhy.AI universe.

Key functions:

  • feature_importance() for assessment of global level feature importance,
  • ceteris_paribus() for calculation of the Ceteris Paribus / What-If Profiles (read more at https://ema.drwhy.ai/ceterisParibus.html),
  • partial_dependence() for Partial Dependence Plots,
  • conditional_dependence() for Conditional Dependence Plots also called M Plots,
  • accumulated_dependence() for Accumulated Local Effects Plots,
  • aggregate_profiles() and cluster_profiles() for aggregation of Ceteris Paribus Profiles,
  • calculate_oscillations() for calculation of the Ceteris Paribus Oscillations (read more at https://ema.drwhy.ai/ceterisParibusOscillations.html),
  • ceteris_paribus_2d() for Ceteris Paribus 2D Profiles,
  • generic print() and plot() for better usability of selected explanations,
  • generic plotD3() for interactive, D3 based explanations,
  • generic describe() for explanations in natural language.

Installation

# the easiest way to get ingredients is to install it from CRAN:
install.packages("ingredients")

# Or the the development version from GitHub:
# install.packages("devtools")
devtools::install_github("ModelOriented/ingredients")

Interactive plots with D3

feature_importance(), ceteris_paribus() and aggregated_profiles() also work with D3: see an example.

plotD3

Acknowledgments

Work on this package was financially supported by the NCN Opus grant 2016/21/B/ST6/02176.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.