Project 7: Sequential Model Builder
ML Engineer
Builds on these lessons
Current Task
Objective
The Keras Sequential API builds a model as a simple stack of layers, applied one after another — the most common way to define a straightforward network.
Task: build a small Sequential model with two Dense layers and print its summary.
index.py
import tensorflow as tf
from tensorflow.keras import layers, Sequential
model = Sequential([
layers.Dense(8, activation='relu', input_shape=(4,)),
layers.Dense(1)
])
print(model.summary())
* Hint: Correct characters turn green, incorrect ones turn red.
Live Preview
🖼️
Verify your code to see the preview