make_mtry_series: Generate a Tuning Series of 'mtry' for 'randomForest()'

Description Usage Arguments Value Examples

Description

randomForest() implements a default value for mtry determined by the number of predictors used. To examine the influence of mtry on prediction accuracy, make_mtry_series() takes predictor and response matrices and generate a series of mtry for use in a tune grid. Let default value be N, make_mtry_series() makes a numeric vector consisting 10, N/2, N, 2N, and the number of predictors provided. the number of predictors.

Usage

1

Arguments

x

a predictor matrix

y

a response matrix

Value

a numeric factor

Examples

1
make_mtry_series(x = iris[ , 1:4], y = iris[ , 5])

chenyenchung/genofeatutil documentation built on May 15, 2019, 10:38 p.m.