loocv {gcl} | R Documentation |
A function to do leave-one-out crossvalidation of a classifier function on a data set.
loocv(df, mb, eval, seed = NULL, cv.verbose = F, ...)
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. |
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.
Staal A. Vinterbo staal@dsg.harvard.edu
## Not run: loocv(df, gcl, acc.eval) ## End(Not run)