# AI News, Machine Learning Basics with Naive Bayes

- On Monday, June 4, 2018
- By Read More

## Machine Learning Basics with Naive Bayes

After researching and looking into the different algorithms associated with Machine Learning, I’ve found that there is an abundance of great material showing you how to use certain algorithms in a specific language.

The algorithm then uses this combo of data item and outcome/answer in order to “learn” what sorts of things dictate a certain answer.

When provided with data it has never seen before, that isn’t labelled, this trained model can then predict the answer based on what it has seen before.

For example, given a set of emails and people that wrote them, Naive Bayes can be used to build a model to understand the writing styles of each email author.

I’ve taken the Kaggle Simpsons data set and used the script and character data to try and train a machine learning model, using Naive Bayes, to predict whether it was Homer or Bart that said a certain phrase.

To get the main bulk of the code that would help you vectorise the phrases and preprare them into a training and test data set, see the Udacity Intro to Machine Learning Github repo and take a look at their Naive Bayes examples.

Firstly, filter and split your Simpsons data up - you can do this manually - to get a file that contains one id on every line that is either a Bart id (8) or a Homer id (2).

Make another file and put the normalised text for this filtered data on each line (make sure its in the same order as the id’s so row 1’s id matches row 1’s text etc…).

You can now add further Bart and Homer id’s from the data set (as there were multiple for their different characters) and start tweaking parameters to see if you can improve the accuracy.

- On Monday, September 16, 2019

**Naive Bayes Theorem | Introduction to Naive Bayes Theorem | Machine Learning Classification**

Naive Bayes is a machine learning algorithm for classification problems. It is based on Bayes' probability theorem. It is primarily used for text classification which ...

**Naive Bayes Classifier Tutorial | Naive Bayes Classifier Example | Naive Bayes in R | Edureka**

Data Science Training - ) This Naive Bayes Tutorial video from Edureka will help you understand all the concepts of Naive ..

**Data Mining Lecture -- Bayesian Classification | Naive Bayes Classifier | Solved Example (Eng-Hindi)**

In the bayesian classification The final ans doesn't matter in the calculation Because there is no need of value for the decision you have to simply identify which ...

**Andrew Ng Naive Bayes Generative Learning Algorithms**

This set of videos come from Andrew Ng's courses on Stanford OpenClassroom at ..

**Bayes Rule for Classification - Intro to Machine Learning**

This video is part of an online course, Intro to Machine Learning. Check out the course here: This course was designed ..

**Naive Bayes Classifier - Multinomial Bernoulli Gaussian Using Sklearn in Python - Tutorial 32**

In this Python for Data Science tutorial, You will learn about Naive Bayes classifier (Multinomial Bernoulli Gaussian) using scikit learn and Urllib in Python to how ...

**Naive Bayes Classifier with Solved Example|Type 1| DWM | ML | BDA**

Sample Notes : for notes fill the form ..

**Probability Theory - The Math of Intelligence #6**

We'll build a Spam Detector using a machine learning model called a Naive Bayes Classifier! This is our first real dip into probability theory in the series; I'll talk ...

**Naive Bayes - Georgia Tech - Machine Learning**

Watch on Udacity: Check out the full Advanced Operating Systems course for free ..

**Accuracy of Naive Bayes - Intro to Machine Learning**

This video is part of an online course, Intro to Machine Learning. Check out the course here: This course was designed ..