code_8.py 261 字节
Newer Older
ToTensor's avatar
ToTensor 已提交
1 2 3 4
from keras.layers.normalization import Batch Normalization # 导入批标准化组件
ann.add(Dense(64, input_dim=14, init='uniform')) # 添加输入层
ann.add(Batch Normalization()) # 添加批标准化层
ann.add(Dense(64, init='uniform')) # 添加中间层