How To Build Multi-Layer Perceptron Neural Network Models with Keras
Last Updated on August 19, 2019
The Keras Python library for deep learning focuses on the creation of models as a sequence of layers.
In this post you will discover the simple components that you can use to create neural networks and simple deep learning models using Keras.
Kick-start your project with my new book Deep Learning With Python, including step-by-step tutorials and the Python source code files for all examples.
Let’s get started.
- Update Mar/2017: Updated example for Keras 2.0.2, TensorFlow 1.0.1 and Theano 0.9.0.
Neural Network Models in Keras
The focus of the Keras library is a model.
The simplest model is defined in the Sequential class which is a linear stack of Layers.
You can create a Sequential model and define all of the layers in the constructor, for example: