You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Another excellent chapter! Some minor suggestions:
in spam_predict, replace [wrd for wrd in email_words if wrd in vocabulary] with intersect(email_words, model.vocabulary). Also, I think the code on the webpage has a typo (vocabulary instead of model.vocabulary).
Use log(probability) instead of probability to avoid numerical errors
In spam_filter_accuracy, why record predictions? It is unused and not returned.
Thank you.
The text was updated successfully, but these errors were encountered:
One more, replace
all_words_text = StringDocument(string([string(word, " ") for word in all_words]...))
with
all_words_text = StringDocument(join(all_words, " "))
Another excellent chapter! Some minor suggestions:
Thank you.
The text was updated successfully, but these errors were encountered: