Skip to content

Instantly share code, notes, and snippets.

View vinayak0792's full-sized avatar

Vinayaka Raju Gopal vinayak0792

  • Dallas
View GitHub Profile
@bhoung
bhoung / k-fold CV.r
Created April 24, 2014 00:52
starter code for k fold cross validation using the iris dataset
# 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