Skip to content

Instantly share code, notes, and snippets.

@BinarySpoon
Created December 2, 2020 05:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BinarySpoon/78a59dc891b9f8cd9d5a07753bdcd0d8 to your computer and use it in GitHub Desktop.
Save BinarySpoon/78a59dc891b9f8cd9d5a07753bdcd0d8 to your computer and use it in GitHub Desktop.
# TRAIN TEST SPLIT -->
#-----------------
print('#TRAIN TEST SPLIT')
labels = data['label']
features = CountVectorizer(analyzer=process_message).fit_transform((data['message']))
X_train,X_test,y_train,y_test = train_test_split(features,labels,test_size=0.20,random_state=0)
print('#SPLT DONE')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment