Issue : TypeError: ('Keyword argument not understood:', 'init')

Solution:
there are kernel_initializer and bias_initializer if you want to initialize any one of them.

# create model
model = Sequential()
model.add(Dense(12, input_dim=8, kernel_initializer='uniform',activation='relu'))
model.add(Dense(8, bias_initializer='uniform',activation='relu'))
model.add(Dense(1, kernel_initializer='random_uniform',activation='sigmoid'))
Reason :
From the docs there is no init argument in the Keras Dense layer, there are kernel_initializer and bias_initializer if you want to initialize any one of them.
7748

被折叠的 条评论
为什么被折叠?



