How do I calculate the accuracy of my algorithm in R?
Below, I created a data partition wherein 75% is for training and remaining is for testing:
splitIndex <- createDataPartition(Iris$CLASS, p = .75, list = FALSE, times = 1)
trainDF <- totalbasefile[ splitIndex,]
testDF <- totalbasefile[-splitIndex,]
myFS<-fscaret(trainDF, testDF, myTimeLimit = 10, preprocessData=TRUE,
Used.funcRegPred = 'gbm', with.labels=TRUE,
supress.output=FALSE, no.cores=2)
What should I do next to determine the accuracy of my GBM algorithm? I have used pls algorithm as well by changing using Used.funcRegPred = 'pls' I wanted to know ids there any function that could help to estimate accuracy of any algorithm be it pls or pcr included within the caret package.
Thanks!