Skip to content

sequential api vs functional api #38

Answered by mrdbourke
Programmer-RD-AI asked this question in Q&A
Discussion options

You must be logged in to vote
  • Sequential = a straight-forward set of layers (run from top to bottom)
  • Functional = more customizable options for different layers/model architectures (for example, the model we build in notebook 09 would not be possible with the Sequential API)

From the documentation on the Functional API:

The Keras functional API is a way to create models that are more flexible than the tf.keras.Sequential API. The functional API can handle models with non-linear topology, shared layers, and even multiple inputs or outputs.

See more here: https://www.tensorflow.org/guide/keras/functional

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Programmer-RD-AI
Comment options

Answer selected by mrdbourke
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants