Runs a repeated cross validation for a function. See also cv().

rcv(x, y, nfolds = 5, nrepcv = 2, FUN, ...)

Arguments

x

matrix/data.frame, feature matrix, see ranger() for details.

y

numeric/factor, classification labels, see ranger() for details.

nfolds

integer(1) number of cross validation folds.

nrepcv

integer(1) number of repeats.

FUN

function function to optimize.

...

further arguments passed to FUN.

Value

double(5), minimal, 25 % quartiel, median, 75 % quartile and maximal results across the repeated cross validations.