Prints Explainer Summary

# S3 method for explainer
print(x, ...)

Arguments

x

a model expaliner created with the `explain` function

...

other parameters

Examples

library("breakDown") wine_lm_model4 <- lm(quality ~ pH + residual.sugar + sulphates + alcohol, data = wine) wine_lm_explainer4 <- explain(wine_lm_model4, data = wine, label = "model_4v") wine_lm_explainer4
#> Model label: model_4v #> Model class: lm #> Data head : #> fixed.acidity volatile.acidity citric.acid residual.sugar chlorides #> 1 7.0 0.27 0.36 20.7 0.045 #> 2 6.3 0.30 0.34 1.6 0.049 #> free.sulfur.dioxide total.sulfur.dioxide density pH sulphates alcohol #> 1 45 170 1.001 3.0 0.45 8.8 #> 2 14 132 0.994 3.3 0.49 9.5 #> quality #> 1 6 #> 2 6
library("randomForest") wine_rf_model4 <- randomForest(quality ~ pH + residual.sugar + sulphates + alcohol, data = wine) wine_rf_explainer4 <- explain(wine_rf_model4, data = wine, label = "model_rf") wine_rf_explainer4
#> Model label: model_rf #> Model class: randomForest.formula,randomForest #> Data head : #> fixed.acidity volatile.acidity citric.acid residual.sugar chlorides #> 1 7.0 0.27 0.36 20.7 0.045 #> 2 6.3 0.30 0.34 1.6 0.049 #> free.sulfur.dioxide total.sulfur.dioxide density pH sulphates alcohol #> 1 45 170 1.001 3.0 0.45 8.8 #> 2 14 132 0.994 3.3 0.49 9.5 #> quality #> 1 6 #> 2 6