run.RF | R Documentation |
Wraper for running random forest classifier
run.RF(
xdata,
xlabel,
ydata,
do.norm = F,
ntree = 500,
ntreeIterat = 200,
selectVar = T,
ncores = NULL,
use.ranger = T,
xdata.test = NULL,
xlabel.test = NULL
)
xdata |
data frame or matrix; data used for training, with sample id in rows and variables in columns |
xlabel |
factor; classification label of the samples, with length equal to the number of rows in xdata |
ydata |
data frame or matrix; data to be predicted the label, same format as xdata |
do.norm |
logical; whether perform Z score normalization on data |
ntree |
integer; parameter of varSelRF::varSelRF |
ntreeIterat |
integer; parameter of varSelRF::varSelRF |
selectVar |
logical; wheter select variables (default: TRUE) |
ncores |
intersect; numer of cores to use (default: NULL) |
use.ranger |
logical; wheter use ranger (default: TRUE) |
xdata.test |
data frame or matrix; data used for test, with sample id in rows and variables in columns |
xlabel.test |
factor; classification label of the test samples, with length equal to the number of rows in xdata.test |
List with the following elements:
ylabel |
ppredicted labels of the samples in ydata |
rfsel |
trained model; output of varSelRF() |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.