Appendix
About
This section is included to assist you to perform the activities in the book. It includes detailed steps that are to be performed by you to achieve the objectives of the activities.
Chapter 1: Introduction to Machine Learning with Keras
Activity 1: Adding Regularization to the Model
Solution:
- Load the feature data from Exercise 1 and the target data from the second activity. The feature data from the second activity can also be used:
import pandas as pd
feats = pd.read_csv(‘data/bank_data_feats_e3.csv’, index_col=0)
target = pd.read_csv(‘data/bank_data_target_e2.csv’, index_col=0)
- We will again create a test and train dataset. We will train the data using the training dataset. This time, however, we will use part of the ...
Get Applied Deep Learning with Keras now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.