Description Usage Arguments Value Examples
View source: R/run_drift_checks.R
Print All Drifter Checks
1 2 |
x |
an object of the class 'all_drifter_checks' |
... |
other arguments, currently ignored |
this function prints all drifter checks
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.