loocv {gcl}R Documentation

Leave one out crossvalidation

Description

A function to do leave-one-out crossvalidation of a classifier function on a data set.

Usage

loocv(df, mb, eval, seed = NULL, cv.verbose = F, ...)

Arguments

df Data set (frame)
mb Model builder, must return a function that takes df as input and returns a matrix where entry (i,j) is the classifiers belief of case i's memebership in class j
eval Evaluation function, takes as input classifier generated by mb above and data frame df
seed Set random seed to this (for reproducibility)
cv.verbose If TRUE, output info.
... Passed on.

Value

Returns eval output from a pseudo classifier that returns for each case the result of the leave one out cv where this case was left out.

Author(s)

Staal A. Vinterbo staal@dsg.harvard.edu

Examples

## Not run: 
loocv(df, gcl, acc.eval)
## End(Not run)

[Package gcl version 1.06.5 Index]