Skip to content

Instantly share code, notes, and snippets.

@dsilvadeepal
Last active August 14, 2018 20:08
Show Gist options
  • Save dsilvadeepal/acb169ca528e98d820dd6503eb87458e to your computer and use it in GitHub Desktop.
Save dsilvadeepal/acb169ca528e98d820dd6503eb87458e to your computer and use it in GitHub Desktop.
#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