Specify Model Architecture

Learn about the second step of the Keras workflow; Specifying the model architecture.

Keras model APIโ€™s

There are two ways to build a deep learning model in Keras:

1. Sequential API - Simple and easy to use

2. Functional API - Flexible and advanced

๐Ÿ“ Note: We will focus on Sequential since it is an easier way to build the model.

Sequential

The core idea of Sequential API is about arranging the Keras layers in sequential order. Hence the name, โ€œSequential APIโ€. The API allows the data to flow from one layer to another layer in the given order until the data finally reaches the output layer.

Import the Sequential API:

The Sequential API can be imported from the keras.models API as follows:

Get hands-on with 1200+ tech skills courses.