Keras Model Sequential API VS Functional API

Original article was published by Rahmat Faisal on Deep Learning on Medium

Functional API

Keras functional API provides a more flexibility as you can easily defines models where layers connect to more than just the previous and next layers, and you can connect layers to any other layers. As a result, you can create complex network such as Residual Network.

Example Code:


Plot functional model using keras utils.

Keras Plot Model

As you can see, Functional API let us to make layers more flexible.