【发布时间】:2019-12-01 12:34:19
【问题描述】:
我有一个自定义的正则化术语my_reg。
model = Sequential()
model.add(Dense(128, activation='relu'))
model.add(Dense(64, activation='relu'))
# The last layer is regularized with a custom regularizer
model.add(Dense(10, activation='softmax', W_regularizer=my_reg))
model.add(Dropout(0.5))
Dropout(0.5) 在训练过程中是否也适用于my_reg?如果不是,我怎样才能使它成为真的?提前致谢!
【问题讨论】:
标签: python tensorflow keras regularized dropout