print.feature_importance_explainer: Print Generic for Feature Importance Object

Description Usage Arguments Value References Examples

View source: R/print_feature_importance.R

Description

Print Generic for Feature Importance Object

Usage

1
2
## S3 method for class 'feature_importance_explainer'
print(x, ...)

Arguments

x

an explanation created with feature_importance

...

other parameters.

Value

a data frame.

References

Explanatory Model Analysis. Explore, Explain, and Examine Predictive Models. https://ema.drwhy.ai/

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
library("DALEX")
library("ingredients")

model_titanic_glm <- glm(survived ~ gender + age + fare,
                         data = titanic_imputed, family = "binomial")

explain_titanic_glm <- explain(model_titanic_glm,
                               data = titanic_imputed[,-8],
                               y = titanic_imputed[,8],
                               verbose = FALSE)

fi_glm <- feature_importance(explain_titanic_glm)

fi_glm

ingredients documentation built on April 10, 2021, 5:06 p.m.