SyntaxError: invalid syntax in C2_W2_Assignment

In this lab I am keep getting error for the following code, I don’t where I did wrong, the code seems correct to me.

{mentor edit: code removed}

Compare to the example, I found in the example, instead of:
tf.keras.layers.Dense(units=25, activation=‘relu’),

It only used 25 without units, is this because the dense function by default has 3 parameters and without call the units, the 25 will auto fits in the first parameter?

Dense(25, activation=‘relu’, name = “L1”)

Also where did I do wrong?


why we need to specify the name kwarg?

isn’t this is not required?

You cannot publish code solutions publicly so remove them.

You error is that you forgot to put the comma at the end of the tf.keras.Input…line.