Skip to content

Instantly share code, notes, and snippets.

@rischanlab
Created May 24, 2014 02:52
Show Gist options
  • Save rischanlab/fd98d36f4edbcfbcb473 to your computer and use it in GitHub Desktop.
Save rischanlab/fd98d36f4edbcfbcb473 to your computer and use it in GitHub Desktop.
RandomForest in R
install.packages("randomForest",dependencies=TRUE)
library(randomForest)
fit <- randomForest(data$user ~ data$academic+data$email
+data$socnet+data$porn+data$comic+data$music
+data$shop+data$blog+data$video+data$search
+data$news, data=data)
print(fit)
importance(fit)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment