Commit d4b4a345 by Paktalin

Edited sms spam detector

parent 675c29bb
Showing with 1 additions and 1 deletions
...@@ -5,7 +5,7 @@ from sklearn.feature_extraction.text import CountVectorizer ...@@ -5,7 +5,7 @@ from sklearn.feature_extraction.text import CountVectorizer
from sklearn.naive_bayes import MultinomialNB from sklearn.naive_bayes import MultinomialNB
from wordcloud import WordCloud from wordcloud import WordCloud
def train_test_split(X, Y, test_size): def train_testgit_split(X, Y, test_size):
test_size = int(test_size*X.shape[0]) test_size = int(test_size*X.shape[0])
Xtrain = X[:-test_size] Xtrain = X[:-test_size]
Xtest = X[-test_size:] Xtest = X[-test_size:]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment