# --- For `Supervised` objects ---
species_cart <- train(iris, hyperparameters = setup_CART())
describe(species_cart)
# --- For `SupervisedRes` objects ---
mod <- train(
iris,
hyperparameters = setup_CART(),
outer_resampling_config = setup_KFold(n_resamples = 3L)
)
describe(mod)
# --- For factors ---
# Small number of levels
describe(iris[["Species"]])
# Large number of levels: show top n by count
x <- factor(sample(letters, 1000, TRUE))
describe(x)
describe(x, 3)
describe(x, 3, return_ordered = FALSE)
Run the code above in your browser using DataLab