Skip to content

Instantly share code, notes, and snippets.

@wallingTACC
wallingTACC / 20NewsgroupsNaiveBayes.R
Last active December 24, 2015 08:49
Austin R Users Group Meetup - FasteR Naive Bayes
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