Skip to content

Commit aff046a

Browse files
committed
update
1 parent 42358e9 commit aff046a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

nlp_class/spam2.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
model.fit(Xtrain, Ytrain)
5555
print("train score:", model.score(Xtrain, Ytrain))
5656
print("test score:", model.score(Xtest, Ytest))
57-
exit()
57+
# exit()
5858

5959

6060
# visualize the data
@@ -73,6 +73,7 @@ def visualize(label):
7373

7474

7575
# see what we're getting wrong
76+
X = tfidf.transform(df['data'])
7677
df['predictions'] = model.predict(X)
7778

7879
# things that should be spam

0 commit comments

Comments
 (0)