Going by the tutorial, this is an example of a simple 3 layer sequential neural network:
model = keras.Sequential(
[
layers.Dense(2, activation="relu", name="layer1"),
layers.Dense(3, activation="relu", name="layer2"),
layers.Dense(4, name="layer3"),
]
)
Does this mean that the input layer is 2 neurons? Because I find that it changes if I give the model a different size vector. I would expect an error if I were fitting to any size vector other than 2, since the input layer only has 2 neurons.