Sequential model
A sequential model is a neural-network model comprising a linear, ordered stack of layers through which data flows from input to output.
Deep Learning with R, Third Edition
A sequential model is a Keras model that represents a simple linear stack of layers with one input and one output.
- How it is used
- Builds simple Keras models when one input can pass through a linear stack of layers to one output.
- How deep it goes
- Explains construction, deferred weight creation, input shapes, summaries, naming, and API limits, but stops short of advanced graph architectures.
- Examples
- Uses chained Dense layers, incremental layer addition, explicit input shapes, model summaries, parameter counts, and named layers.
- What you can do after
- Build it from scratch with keras_model_sequential(), inspect its structure, and diagnose shape or construction issues with build() and summaries.
Read how Deep Learning with R, Third Edition explains Sequential model →
Deep Learning with Python, Third Edition
A Keras class for building models as a linear stack of layers.
- How it is used
- Builds simple one-input, one-output Keras models as linear stacks of layers.
- How deep it goes
- Explains direct and incremental construction, delayed weight creation, input-shape building, summaries, naming, and architecture limits.
- Examples
- Demonstrates Dense classifiers, incremental add calls, explicit input shapes, build(), weights, summary(), and named layers.
- What you can do after
- Build it from scratch with keras.Sequential, inspect its structure, and choose a more flexible API when the architecture outgrows a stack.
Read how Deep Learning with Python, Third Edition explains Sequential model →
Also covered in
- Vibe EngineeringIn early access (MEAP)
- Distributed Machine Learning Patterns
What to know first
- linear layerA linear layer is a neural-network layer that applies a learned affine transformation to its input, typically using weights and a bias.
- affine transformationAn affine transformation is a mapping of the form x ↦ Ax + b, where A is a linear map and b is a fixed offset.
- directed acyclic graphA directed acyclic graph is a graph whose edges have directions and contain no directed cycles.
- tensor operationA tensor operation is a mathematical or computational transformation applied to one or more tensors, producing tensor or scalar values.
Related concepts
- Functional APIalternative to · The Functional API is a Keras interface for constructing neural-network models as directed computation graphs by connecting layers and tensors.
- Keras modelkind of · A Keras model is a trainable object representing a neural-network computation and providing interfaces for training, evaluation, prediction, and saving.
- model subclassingalternative to · Model subclassing is a technique for defining a neural-network model by creating a class that extends a model base class and specifies its computation.
Questions about Sequential model
What is Sequential model?
A sequential model is a neural-network model comprising a linear, ordered stack of layers through which data flows from input to output.
Which Manning books explain Sequential model?
Deep Learning with R, Third Edition and Deep Learning with Python, Third Edition.
What should I know before learning Sequential model?
Manning books that teach Sequential model usually introduce linear layer, affine transformation, directed acyclic graph and tensor operation first.
What is the difference between Sequential model and Functional API?
A sequential model is a neural-network model comprising a linear, ordered stack of layers through which data flows from input to output. The Functional API is a Keras interface for constructing neural-network models as directed computation graphs by connecting layers and tensors.
What is Sequential model a kind of?
Sequential model is a kind of Keras model. A Keras model is a trainable object representing a neural-network computation and providing interfaces for training, evaluation, prediction, and saving.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

