View source: R/check_residuals.R
check_residuals | R Documentation |
Currently three tests are performed - for outliers in residuals - for autocorrelation in target variable or in residuals - for trend in residuals as a function of target variable (detection of bias)
check_residuals(object, ...)
object |
An object of class 'explainer' created with function |
... |
other parameters that will be passed to further functions. |
list with statistics for particular checks
dragons <- DALEX::dragons[1:100, ]
lm_model <- lm(life_length ~ ., data = dragons)
lm_audit <- audit(lm_model, data = dragons, y = dragons$life_length)
check_residuals(lm_audit)
## Not run:
library("randomForest")
rf_model <- randomForest(life_length ~ ., data = dragons)
rf_audit <- audit(rf_model, data = dragons, y = dragons$life_length)
check_residuals(rf_audit)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.