Machine Learning with Text - TFIDF Vectorizer MultinomialNB Sklearn (Spam Filtering example Part 2)

Опубликовано: 28 Май 2026
на канале: The Semicolon
56,949
722

#MachineLearningText #NLP #TFIDF #DataScience #ScikitLearn #TextFeatures #DataAnalytics #SpamFilter

Correction in video : TFIDF- Term Frequency Inverse Document Frequency.

Text cannot be used as an input to ML algorithms, therefore we use certain techniques to extract features from text. TFIDF Vectorizer extracts features based on word count giving less weightage to frequent words and more weigtage to rare words.

We then apply the features to Multinomial Naive bayes Classifier to classify Spam/ Non Spam messages.

For dataset and Ipython Notebooks.
GitHub: https://github.com/shreyans29/thesemi...
Support us on Patreon :   / thesemicolon  
Facebook:   / thesemicolon.code