print.model_performance: Print Dataset Level Model Performance Summary

Description Usage Arguments Examples

View source: R/print_model_performance.R

Description

Print Dataset Level Model Performance Summary

Usage

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

Arguments

x

a model to be explained, object of the class 'model_performance_explainer'

...

other parameters

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
 ## Not run: 
library("ranger")
titanic_ranger_model <- ranger(survived~., data = titanic_imputed, num.trees = 100,
                               probability = TRUE)
# It's a good practice to pass data without target variable
explainer_ranger  <- explain(titanic_ranger_model, data = titanic_imputed[,-8],
                             y = titanic_imputed$survived)
# resulting dataframe has predicted values and residuals
mp_ex_rn <- model_performance(explainer_ranger)
mp_ex_rn
plot(mp_ex_rn)
 
## End(Not run)

DALEX documentation built on July 8, 2020, 7:17 p.m.