Skip to content

Instantly share code, notes, and snippets.

@yukine-z
yukine-z / k-fold CV.r
Last active August 29, 2015 14:24 — forked from bhoung/k-fold CV.r
# original example from Digg Data website (Takashi J. OZAKI, Ph. D.)
# http://diggdata.in/post/58333540883/k-fold-cross-validation-in-r
library(plyr)
library(randomForest)
data <- iris
# in this cross validation example, we use the iris data set to