Please make sure that the boxes below are checked before you submit your issue. Thank you!
in keras , the first layer is the first hidden_layer ?
I assume you have a data table (row_numbers, column_numbers)
so , 16 is column numbers ,it must take that as input data (well python counts from 0 by the way).
then right after this "Dense(" comes "32" , this 32 is classes you want to categorize your data.
Frankly speaking, I do not like the way KERAS implement it either. It is confusing. Why don't they do :
model = Sequential()
model.add(Dense(input_layer_neurons=16, hidden_layer_neurons=32, kernel_initializer='normal', activation='relu'))
It will be easier to understand with a NN image.
Just found an example in this website:
model.add(Dense(12, input_dim=8, init='uniform', activation='relu'))
It means 8 input parameters, with 12 neurons in the FIRST hidden layer.
thanks franfran
Thanks to @franfran
Thanks!!
thanks man!!!!
@franfran : thanks a lot! the link cleared alot!!
thats good
Thanks franfran
Most helpful comment
It will be easier to understand with a NN image.
Just found an example in this website:
http://keras.dhpit.com/
model.add(Dense(12, input_dim=8, init='uniform', activation='relu'))
It means 8 input parameters, with 12 neurons in the FIRST hidden layer.