print.auditor_model_cooksdistance {auditor}R Documentation

Prints Model Cook's Distances Summary

Description

Prints Model Cook's Distances Summary

Usage

## S3 method for class 'auditor_model_cooksdistance'
print(x, ...)

Arguments

x

an object auditor_model_cooksdistance created with model_cooksdistance function.

...

other parameters

Examples

dragons <- DALEX::dragons[1:100, ]

# fit a model
model_lm <- lm(life_length ~ ., data = dragons)

# create an explainer
lm_audit <- audit(model_lm, data = dragons, y = dragons$life_length)

# calculate score
model_cooksdistance(lm_audit)


[Package auditor version 1.3.3 Index]