rcv: Repeated Cross Validation

View source: R/cv.R

rcvR Documentation

Repeated Cross Validation

Description

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

Usage

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.


ampel-leipzig/rusranger documentation built on April 28, 2022, 3:22 a.m.