The concept of k-fold cross-validation

Introduction. FIXME

Animation

This is a naive demonstration for the k-fold cross validation. The k rectangles in the plot denote the k folds of data. Each time a fold will be used as the test set and the rest parts as the training set. </ani>

R code

library(animation)
saveHTML({options(nmax = 10,interval = 2)
    par(mar = c(3, 3, 1, 0.5), mgp = c(1.5, 0.5, 0), tcl = -0.3)
cv.ani(bty = "l")
},
    img.name="cv_ani",htmlfile="cv_ani.html",
	ani.height = 500, ani.width = 600, outdir = getwd(),
	title = "Demonstration of the k-fold Cross Validation",
    description = c("This is a naive demonstration for the k-fold cross
    validation. The k rectangles in the plot denote the k folds of data.
    Each time a fold will be used as the test set and the rest parts
    as the training set."))
	

dmml/k-fold_cross-validation.txt · Last modified: 2011/01/11 08:31 by oyster8
 
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki