Last active
August 14, 2018 20:08
-
-
Save dsilvadeepal/acb169ca528e98d820dd6503eb87458e 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
#Training & Test set | |
sms_dtm_train <- sms_dtm[1:4457, ] | |
sms_dtm_test <- sms_dtm[4458:5572, ] | |
#Training & Test Label | |
sms_train_labels <- sms_raw[1:4457, ]$Tag | |
sms_test_labels <- sms_raw[4458:5572, ]$Tag | |
#Proportion for training & test labels | |
prop.table(table(sms_train_labels)) | |
prop.table(table(sms_test_labels)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment