Skip to content

Instantly share code, notes, and snippets.

Avatar

James E. Pustejovsky jepusto

View GitHub Profile
@wallingTACC
wallingTACC / 20NewsgroupsNaiveBayes.R
Last active Dec 24, 2015
Austin R Users Group Meetup - FasteR Naive Bayes
View 20NewsgroupsNaiveBayes.R
library(tm) #Text Mining
library(klaR) #Naive Bayes
library(parallel) #RCore parallel functions
library(data.table) #Improved version of data.frame with optimized helper methods like fread
library(caret) #Help us analyze the results
library(ggplot2) #Grammer for Graphics, very popular package
library(profr)
#-----
# Data: Download 20 newsgroup dataset here: http://www.cs.cmu.edu/afs/cs.cmu.edu/project/theo-20/www/data/news20.html