How to do it...

Let's now move on to look at how to build our model.

  1. After reading the data, we use the head() function to take a look it:

In the following screenshot, we can see that there are two columns: labels and messageThe output is as follows:

  1. We then use the describe() function to look at a few metrics in each of the columns:

This gives us the following metrics:

For the object datatype, the result of describe() will provide metrics, count, unique, top, and freq. top refers to the most ...

Get Ensemble Machine Learning Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.