标签:more seq constrain png mic shape sha ali reg
文档地址:https://keras.io/layers/core/#dense
keras.layers.Dense(units, activation=None, use_bias=True, kernel_initializer=‘glorot_uniform‘, bias_initializer=‘zeros‘, kernel_regularizer=None, bias_regularizer=None, activity_regularizer=None, kernel_constraint=None, bias_constraint=None)
Dense是这样的操作:
例子:
# as first layer in a sequential model: model = Sequential() model.add(Dense(32, input_shape=(16,))) # now the model will take as input arrays of shape (*, 16) # and output arrays of shape (*, 32) # after the first layer, you don‘t need to specify # the size of the input anymore: model.add(Dense(32))
参数说明:
标签:more seq constrain png mic shape sha ali reg
原文地址:https://www.cnblogs.com/superxuezhazha/p/10975443.html