Obiamaka Agbaneje - Building a Naive Bayes Text Classifier with scikit learn
Channel: EuroPython Conference
Date: 2018-08-30

Building a Naive Bayes Text Classifier with scikit-learn
[EuroPython 2018 - Talk - 2018-07-26 - PyCharm [PyData]]
[Edinburgh, UK]

By Obiamaka Agbaneje

Machine learning algorithms used in the classification of text are Support Vector Machines, k Nearest Neighbors but the most popular algorithm to implement is Naive Bayes because of its simplicity based on Bayes Theorem.

The Naive Bayes classifier is able to memorise the relationships between the training attributes and the outcome and predicts by multiplying the conditional probabilities of the attributes with the assumption that they are independent of the outcome.  It is popularly used in classifying data sets that have a large number of features that are sparse or nearly independent such as text documents.

In this talk, I will describe how to build a model using the Naive Bayes algorithm with the scikit-learn library using the spam/ham youtube comment dataset from the UCI repository.  Preprocessing techniques such as Text normalisation and Feature extraction will be also be discussed.



License: This video is licensed under the CC BY-NC-SA 3.0 license: https://creativecommons.org/licenses/by-nc-sa/3.0/
Please see our speaker release agreement for details: https://ep2018.europython.eu/en/speaker-release-agreement/