Creating an email spam detector
The model we are going to create will detect spam emails from an emails
dataset. This is a little dataset of 5,572 emails, labeled with a spam
column.
The notebook with the complete source code can be found at the following link:
Let's now have a look at the relevant cells of the notebook in detail, as follows:
- Installing AutoKeras: As we commented in other examples, the following snippet at the top of the notebook is responsible for installing AutoKeras and its dependencies, using the
pip
package manager:!pip3 install autokeras
- Importing needed packages: The following lines load
tensorflow
,pandas
,numpy
, andautokeras
as needed dependencies for this project:import tensorflow as tf import pandas as pd import numpy as np import autokeras as ak from sklearn import model_selection...