View source: R/ModelSeries_fitModels2.R
fitEnsembleModel | R Documentation |
Train multiple subtype models using cross validation
fitEnsembleModel(
Xs,
Ys,
geneSet = NULL,
na.fill.method = c("quantile", "rpart", NULL)[1],
na.fill.seed = 2022,
n = 20,
sampSize = 0.7,
sampSeed = 2020,
breakVec = c(0, 0.25, 0.5, 0.75, 1),
params = list(device = "cpu", nrounds = 15, max_depth = 10, eta = 0.5, nthread = 5,
colsample_bytree = 1, min_child_weight = 1),
nround.mode = c("fixed", "polling")[2],
xgboost.seed = 105,
caret.grid = expand.grid(nrounds = c(10, 15), max_depth = c(5, 10), eta = c(0.01, 0.1,
0.3), gamma = c(0.5, 0.3), colsample_bytree = 1, min_child_weight = 1, subsample =
0.7),
caret.seed = 101,
ptail = 0.5,
verbose = F,
numCores = 2
)
Xs |
Gene expression matrix. |
Ys |
Phenotype vector, multiclass |
geneSet |
A list of genes for classification |
na.fill.method |
Missing value imputation method for |
na.fill.seed |
Seed for |
n |
Size of the ensember, where each member is a result from fitSubtypeModel |
sampSize |
proportion of samples to hold back |
sampSeed |
random seed for subset of Xs |
breakVec |
vector of break points, used to bin expression data |
params |
The parameters for |
nround.mode |
One of
|
xgboost.seed |
Seed for xgboost. |
caret.seed |
The random seed for caret::train process when |
ptail |
Binary phenotype vector. |
verbose |
whether report modeling process |
The geneid of geneSet
and Xs
must be the same (one of
ENSEMBL, SYMBOL or ENTREZID). In addition, if fitEnsembleModel
is hanged on, please check the space use of /
, which would disturb the work of makeCluster
.
A list of lists of xgboost classifiers
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.