Skip to content

DrWhy is the collection of tools for Explainable AI (XAI). It's based on shared principles and simple grammar for exploration, explanation and visualisation of predictive models.

Notifications You must be signed in to change notification settings

tmikolajczyk/DrWhy

 
 

Repository files navigation

DrWhy

DrWhy is the collection of tools for Explainable AI (XAI). It's based on shared principles and simple grammar for exploration, explanation and visualisation of predictive models. The unified grammar beyond DrWhy universe is described in the Predictive Models: Visual Exploration, Explanation and Debugging book.

Please, note that DrWhy is under rapid development and is still maturing. If you are looking for a stable solution, please use the mature DALEX package.

Lifecycle for Predictive Models

Tools that are usefull during the model lifetime.

images/DrWhyAI.png

Data acquisition

Data screening is an important first step of any statistical analysis. Here are tools which can help in this process.

  • dataMaid A suite of checks for identification of potential errors in a data frame as part of the data screening process
  • ggplot2 System for declaratively creating graphics, based on The Grammar of Graphics.

Feature selection

  • Model Agnostic Variable Importance Scores. Surrogate learning = Train an elastic model and measure feature importance in such model. See DALEX, Model Class Reliance MCR
  • vip Variable importance plots

Feature engineering

  • SAFE MI2 Surrogate learning = Train an elastic model and extract feature transformations.
  • xspliner MI2 Using surrogate black-boxes to train interpretable spline based additive models
  • factorMerger MI2 Set of tools for factors merging paper
  • ingredients MI2 Set of tools for model level feature effects and feature importance.

Model tuning

Model validation

  • auditor MI2 model verification, validation, and error analysis vigniette
  • DALEX MI2 Descriptive mAchine Learning EXplanations
  • iml; interpretable machine learning R package
  • randomForestExplainer MI2 A set of tools to understand what is happening inside a Random Forest
  • survxai MI2 Explanations for survival models paper

Model deployment

Model maintenance

  • drifter MI2 Concept Drift and Concept Shift Detection for Predictive Models
  • archivist MI2 A set of tools for datasets and plots archiving paper

Family of Model Explainers

Family of Model Explainers

Architecture of DrWhy

DrWhy works on fully trained predictive models. Models can be created with any tool.

DrWhy uses DALEX2 package to wrap model with additional matadata required for explanations, like validation data, predict function etc.

Explainers for predictive models can be created with model agnostic or model specific functions implemented in various packages.

Architecture of DrWhy

Hype_Cycle

About

DrWhy is the collection of tools for Explainable AI (XAI). It's based on shared principles and simple grammar for exploration, explanation and visualisation of predictive models.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • R 100.0%