Print All Drifter Checks

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

Arguments

x

an object of the class `all_drifter_checks`

...

other arguments, currently ignored

Value

this function prints all drifter checks

Examples

library("DALEX") model_old <- lm(m2.price ~ ., data = apartments) model_new <- lm(m2.price ~ ., data = apartments_test[1:1000,]) check_drift(model_old, model_new, apartments, apartments_test, apartments$m2.price, apartments_test$m2.price)
#> ------------------------------------- #> Variable Shift #> ------------------------------------- #> m2.price 4.9 #> construction.year 6.0 #> surface 6.8 #> floor 4.9 #> no.rooms 2.8 #> district 2.8 #> ------------------------------------- #> Variable Shift #> ------------------------------------- #> Residuals 8.3 #> ----------------------------------------------- #> Variable Shift Scaled #> ----------------------------------------------- #> floor 194.64 21.6 * #> no.rooms 185.78 20.6 * #> surface 170.91 19.0 . #> m2.price 191.43 21.3 * #> construction.year 192.27 21.4 *
library("ranger") predict_function <- function(m,x,...) predict(m, x, ...)$predictions model_old <- ranger(m2.price ~ ., data = apartments) model_new <- ranger(m2.price ~ ., data = apartments_test) check_drift(model_old, model_new, apartments, apartments_test, apartments$m2.price, apartments_test$m2.price, predict_function = predict_function)
#> ------------------------------------- #> Variable Shift #> ------------------------------------- #> m2.price 4.9 #> construction.year 6.0 #> surface 6.8 #> floor 4.9 #> no.rooms 2.8 #> district 2.8 #> ------------------------------------- #> Variable Shift #> ------------------------------------- #> Residuals 34.4 ** #> ----------------------------------------------- #> Variable Shift Scaled #> ----------------------------------------------- #> floor 43.40 4.8 #> no.rooms 44.34 4.9 #> surface 47.98 5.3 #> m2.price 33.60 3.7 #> construction.year 78.36 8.7