2. Machine Learning versus Deep Learning
Activity 2.01: Creating a Logistic Regression Model Using Keras
In this activity, we are going to create a basic model using the Keras library. The model that we will build will classify users of a website into those that will purchase a product from a website and those that will not. To do this, we will utilize the same online shopping purchasing intention dataset that we did previously and attempt to predict the same variables that we did in Chapter 1, Introduction to Machine Learning with Keras.
Perform the following steps to complete this activity:
- Open a Jupyter notebook from the start menu to implement this activity. Load in the online shopping purchasing intention datasets, which you can download from the GitHub repository. We will use the pandas library for data loading, so import the
pandas
library. Ensure you have saved the csv files to an appropriate data folder for this chapter first. Alternatively, you can change...