Deep Learning, Neural Networks, Keras, Python.
you can give input_dim as a scalar number. So, in our model, where our input layer has 2 elements, we can use any of these two: input_shape=(2,) -- The comma is necessary when you have only one dimension input_dim = 2 A popular misconception surrounding the input shape parameter is that it must