Hey, I have been getting an invalid syntax Error while trying to create my model, it gives me the following error message “File “”, line 9
tf.keras.layers.Dense(units=15, activation=“sigmoid”, name=“layer2”)
^
SyntaxError: invalid syntax”
It seems that one has to separate the layers with a comma.
Yes, this is because the Sequential model is essentially a python list.
Lists are enclosed in square brackets, and the elements are separated by commas.