C1W1_Assignment

I got the following error:

grader-required-cell

Get your trained model

model = house_model()

NameError Traceback (most recent call last)
in
2
3 # Get your trained model
----> 4 model = house_model()

in house_model()
12 # Define your model (should be a model with 1 dense layer and 1 unit)
13 # Note: you can use tf.keras instead of keras
—> 14 model = tf.keras.Sequential([keras.layers.Dense(units=1,input_shape=[1])])
15
16 # Compile your model

NameError: name ‘keras’ is not defined

you are not recalling your model with the correct codes #14 line.

Please see this linked image to do the correction to your model code.