Timeline for R - Error in KNN - Test and training differ
Current License: CC BY-SA 3.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 23, 2019 at 14:32 | answer | added | itsmejackie06 | timeline score: 0 | |
Sep 12, 2016 at 14:51 | comment | added | rohit kumar | I am facing the same issue which the same data set as above library(tm) library(plyr) #for keeping the text as-is options(stringasFactors=F) #dicrectory location team<-c("AA","BB") storedin<-"XXXX" #pre-process; one corpus for each candidate cleanCorpus <- function(corpus){ mycorpus <- tm_map(corpus, removePunctuation) mycorpus <- tm_map(mycorpus,stripWhitespace) mycorpus <- tm_map(mycorpus, PlainTextDocument) mycorpus <- tm_map(mycorpus,removeWords, stopwords("english")) return(mycorpus) } #tdm mytdm<-function(teamember,storedpath){ emaillocation<-sprintf("%s/%s",storedpath,teamember) newcorp | |
Aug 31, 2015 at 15:18 | answer | added | kpb | timeline score: 1 | |
Aug 31, 2015 at 13:04 | review | First posts | |||
Sep 2, 2015 at 7:41 | |||||
Aug 31, 2015 at 13:02 | history | asked | Arun | CC BY-SA 3.0 |