print.auditor_model_cooksdistance | R Documentation |
Prints Model Cook's Distances Summary
## S3 method for class 'auditor_model_cooksdistance'
print(x, ...)
x |
an object |
... |
other parameters |
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.