optimizeMTRY: Mtry Optimization

Description Usage Arguments Value Author(s) Examples

View source: R/RFTuning.R

Description

This function provides a 'population' estimate of the average OOB error computed for different mtry values, starting from a sample of N models. These values will be used to compute the mtry associated to the minimum averaged OOB error, that is the optimal parameter we are looking for.

Usage

1
optimizeMTRY(oob_matrix)

Arguments

oob_matrix

a n x p of n OOB error values (one for each iteration) and p columns (one for each mtry value tested) Each value of a column is the oob error of a model growth with a particular mtry. Typically for each mtry, we will have N different models (N > 30), a sample large enough to provide an estimate of the average OOB error for the corresponding population of models.

Value

a list of two elements:

Author(s)

Piergiorgio Palla

Examples

1
2
3
## data(cachexiaData)
## res <- tuneMTRY(cachexiaData, iterations = 50, maxntree = 600, mtry_length = 10, graph = F)
## l <- optimizeMTRY(res$oob)

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