-
-
Save BinarySpoon/78a59dc891b9f8cd9d5a07753bdcd0d8 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
# 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