To introduce the concepts of classification, we’ll use an example. In this case, the objective is to predict whether a client subscribed to a term deposit or not.
For this purpose:
The dataset:
To download the dataset using Python, we can do it the following way:
!wget <https://archive.ics.uci.edu/static/public/222/bank+marketing.zip>
To unzip the files, we can perform the following commands:
!unzip -o bank+marketing.zip
!unzip -o bank-additional.zip
!unzip -o bank.zip
The first step in any data science project is to import some packages to work on the dataset:
import pandas as pd
import numpy as np
import seaborn as sns
import matplotlib.pyplot as plt
import mplcyberpunk
plt.style.use("cyberpunk")