Srikanth Pagadala

My first Neural Network with Keras

05 Nov 2016

Keras makes working with Neural Networks consistent with sklearn API.

Steps involved are:

  • Load Data
  • Define Model
  • Compile Model
  • Fit Model
  • Make Predictions
  • Evaluate Model

I have used the Pima Indians onset of diabetes dataset. This is a standard machine learning dataset from the UCI Machine Learning repository. It describes patient medical record data for Pima Indians and whether they had an onset of diabetes within five years.

As such, it is a binary classification problem (onset of diabetes as 1 or not as 0). All of the input variables that describe each patient are numerical. This makes it easy to use directly with neural networks that expect numerical input and output values, and ideal for our first neural network in Keras.

Source Code

Report

Next: Multi-Class Classification with Keras