Learn R Programming

⚠️There's a newer version (2.4.3) of this package.Take me there.

DALEX (version 0.4.9)

Descriptive mAchine Learning EXplanations

Description

Machine Learning (ML) models are widely used and have various applications in classification or regression. Models created with boosting, bagging, stacking or similar techniques are often used due to their high performance, but such black-box models usually lack of interpretability. DALEX package contains various explainers that help to understand the link between input variables and model output. The single_variable() explainer extracts conditional response of a model as a function of a single selected variable. It is a wrapper over packages 'pdp' (Greenwell 2017) , 'ALEPlot' (Apley 2018) and 'factorMerger' (Sitko and Biecek 2017) . The single_prediction() explainer attributes parts of a model prediction to particular variables used in the model. It is a wrapper over 'breakDown' package (Staniak and Biecek 2018) . The variable_dropout() explainer calculates variable importance scores based on variable shuffling (Fisher at al. 2018) . All these explainers can be plotted with generic plot() function and compared across different models. 'DALEX' is a part of the 'DrWhy.AI' universe (Biecek 2018) .

Copy Link

Version

Install

install.packages('DALEX')

Monthly Downloads

6,326

Version

0.4.9

License

GPL

Issues

Pull Requests

Stars

Forks

Maintainer

Przemyslaw Biecek

Last Published

October 24th, 2019

Functions in DALEX (0.4.9)

install_dependencies

Install all dependencies for the DALEX package
loss_cross_entropy

Calculate Loss Functions
feature_response

Calculate Marginal Response for a Single Feature
explain.default

Create Model Explainer
colors_discrete_drwhy

DrWhy color palettes for ggplot objects
dragons

Dragon Data
apartments

Apartments Data
HR

Human Resources Data
print.explainer

Print Explainer Summary
plot.feature_response_explainer

Plot Marginal Model Explanations (Single Variable Responses)
plot.prediction_breakdown_explainer

Plot Break Down Explanations (Single Prediction)
print.model_info

Print model_info
plot.model_performance_explainer

Plot Model Performance Explanations
plot.variable_response_explainer

Plot Marginal Model Explanations (Single Variable Responses)
print.description

Print Natural Language Descriptions
prediction_breakdown

Calculate Break Down Explanations
plot.variable_importance_explainer

Plot Variable Importance Explanations
predict.explainer

Calculate Predictions for Explainer
variable_response

Calculate Marginal Response Explanations for a Single Variable
yhat

Wrap Various Predict Functions
update_data

Update data of an explainer object
titanic

Passengers and Crew on the RMS Titanic Data
variable_importance

Calculate Feature Importance Explanations as Loss from Feature Dropout
update_label

Update label of explainer object
theme_drwhy

DrWhy Theme for ggplot objects
print.model_performance_explainer

Print Model Performance Summary
model_performance

Calculate Model Performance
model_info

Exract info from model