Nothing
Code
rlang::expr_text(tf)
Output
[1] "case_when(cyl <= 5 ~ 26.6636363636364, .default = case_when(cyl <= \n 7 ~ 19.7428571428571, .default = 15.1))"
Code
tidypredict_test(rpart::rpart(mpg ~ am + cyl + wt, data = mtcars), mtcars)
Output
tidypredict test results
Difference threshold: 1e-12
All results are within the difference threshold
Code
tidypredict_test(rpart::rpart(Species ~ ., data = iris), iris)
Output
tidypredict test results
Difference threshold: 0
All results are within the difference threshold
Code
tidypredict_test(rpart::rpart(mpg ~ cyl + wt, data = mtcars2), mtcars2)
Output
tidypredict test results
Difference threshold: 1e-12
All results are within the difference threshold
Code
.extract_rpart_classprob(list())
Condition
Error in `.extract_rpart_classprob()`:
! `model` must be <rpart>, not an empty list.
Code
.extract_rpart_classprob(model)
Condition
Error in `.extract_rpart_classprob()`:
! `model` must be a classification model (method = 'class').
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.