3. Deep Learning with Keras
Activity 3.01: Building a Single-Layer Neural Network for Performing Binary Classification
In this activity, we will compare the results of a logistic regression model and single-layer neural networks of different node sizes and different activation functions. The dataset we will use represents the normalized test results of aircraft propeller inspections, while the class represents whether they passed or failed a manual visual inspection. We will create models to predict the results of the manual inspection when given the automated test results. Follow these steps to complete this activity:
- Load all the required packages:
# import required packages from Keras from keras.models import Sequential from keras.layers import Dense, Activation import numpy as np import pandas as pd from tensorflow import random from sklearn.model_selection import train_test_split # import required packages for plotting import matplotlib.pyplot as plt import matplotlib...