print.auditor_model_cooksdistance: Prints Model Cook's Distances Summary

View source: R/print.R

print.auditor_model_cooksdistanceR 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)


auditor documentation built on Nov. 2, 2023, 6:13 p.m.