run.RF: Wraper for running random forest classifier

run.RFR Documentation

Wraper for running random forest classifier

Description

Wraper for running random forest classifier

Usage

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
)

Arguments

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

Value

List with the following elements:

ylabel

ppredicted labels of the samples in ydata

rfsel

trained model; output of varSelRF()


Japrin/sscClust documentation built on May 23, 2024, 7:12 a.m.