For any Keras layer (Layer
class), can someone explain how to understand the difference between input_shape
, units
, dim
, etc.?
For example the doc says units
specify the output shape of a layer.
In the image of the neural net below hidden layer1
has 4 units. Does this directly translate to the units
attribute of the Layer
object? Or does units
in Keras equal the shape of every weight in the hidden layer times the number of units?
In short how does one understand/visualize the attributes of the model – in particular the layers – with the image below?