An error keep on occcuring


NameError Traceback (most recent call last)
in
2 # GRADED CELL: Sequential model
3
----> 4 model = keras.Sequential(
5 [
6 tf.keras.Input(shape=(400,)), #specify input size

NameError: name ‘keras’ is not defined

I had already imported keras explicitly
This is the lab exercise error

Just use “Sequential”, since you already imported it.
“keras.Sequential” isn’t correct, since you didn’t import “keras”.