How to do it...

We'll code up the strategy as follows (Please refer to the Credit default prediction.ipynb file in GitHub while implementing the code):

  1. Import the relevant packages and the dataset:
import pandas as pddata = pd.read_csv('...') # Please add path to the file you downloaded

The first three rows of the dataset we downloaded are as follows:

The preceding screenshot is a subset of variables in the original dataset. The variable named Defaultin2yrs is the output variable that we need to predict, based on the rest of the variables present in the dataset.

  1. Summarize the dataset to understand the variables better:
data.describe() ...

Get Neural Networks with Keras Cookbook 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.