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.
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)