我已经知道如何通过使用来调用批处理规范化 model.add(BatchNormalization()), 但是,我以这种样式编织网:
{
model = Sequential([
Dense( output_dim=30,
activation='tanh',
input_dim=X_train.shape[1],
kernel_regularizer=regularizers.l2(0.1)),
Dense( output_dim =30,
activation='tanh',
kernel_regularizer=regularizers.l2(0.1)),
Dense(1, activation='sigmoid')])
}
想知道如何在这些代码中使用BatchNormalization?