Created
September 11, 2016 21:26
-
-
Save zunman/4035b5f2f870efc5f05bf5c122c1f973 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#perform split | |
splitIndex <- createDataPartition(data.DTM$label, p = .50, list = FALSE, times = 1) | |
trainset <- data.DTM[ splitIndex,] | |
testset <- data.DTM[-splitIndex,] | |
traindata <- data[ splitIndex,] | |
testdata <- data [-splitIndex,] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment