View source: R/splendid_ensemble.R
splendid_ensemble | R Documentation |
Combine classification models into an ensemble
splendid_ensemble(
sm,
data,
class,
top = 3,
seed_rank = 1,
rfe = FALSE,
sequential = FALSE
)
sm |
a |
data |
data frame with rows as samples, columns as features |
class |
true/reference class vector used for supervised learning |
top |
the number of highest-performing algorithms to retain for ensemble |
seed_rank |
random seed used for reproducibility in rank aggregation of ensemble algorithms |
rfe |
logical; if |
sequential |
logical; if |
dat <- iris[, 1:4]
class <- iris$Species
sm <- splendid_model(dat, class, n = 3, algorithms = c("xgboost", "slda"))
se <- splendid_ensemble(sm, dat, class)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.