rfMCCV: Monte Carlo cross-validation of Random Forest models

Description Usage Arguments Value

View source: R/RFMCcv.R

Description

This function allows to perform a Monte Carlo cross-validation of a Random Forest

Usage

1
rfMCCV(data, nsplits, test_prop, opt_params)

Arguments

data

a n x p dataframe used to build the models. The first two columns must represent respectively the sample names and the class labels related to each sample

nsplits

the number of random splittings of the original dataset into training and test data sets

test_prop

the percentage (expressed as a real number) of the observations of the original dataset to be included in each test set

opt_params

a list of optional parameters characterizing both the model to be validated and the input dataset. It may include parameters like the number of trees (ntree), the mtry, or the eventual reference class label (ref_level) of the dataset

Value

a list of three elements:

@examples data(cachexiaData) params <- list(ntrees = 500, ref_level = levels(cachexiaData[,2])[1] ) mccv_obj <- rfMCCV(cachexiaData, nsplits = 5, test_prop = 1/3, opt_params = params) @author Piergiorgio Palla @export


pjpalla/RFmarkerDetector documentation built on May 25, 2019, 8:19 a.m.