print.all_drifter_checks: Print All Drifter Checks

Description Usage Arguments Value Examples

Description

Print All Drifter Checks

Usage

1
2
## S3 method for class '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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
 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)
 
 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)

drifter documentation built on May 31, 2019, 5:04 p.m.