print.all_drifter_checks {drifter} | R Documentation |
Print All Drifter Checks
Description
Print All Drifter Checks
Usage
## 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
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)
[Package drifter version 0.2.1 Index]