Nothing
testthat::test_that("`target_encoding_rank()` works", {
testthat::skip_on_cran()
data(vi_smol)
#rank
df <- target_encoding_rank(
df = vi_smol,
response = "vi_numeric",
predictor = "soil_type",
encoded_name = "encoded_column"
)
testthat::expect_true(
class(df[["encoded_column"]]) == "integer"
)
df <- target_encoding_rank(
df = vi_smol,
response = "vi_numeric",
predictor = "soil_type",
encoded_name = NULL
)
testthat::expect_true(
"soil_type__encoded" %in% colnames(df)
)
})
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.