标签:正则 imp layer bsp col span add regular style
在某一层添加L2正则:
from keras import regularizer model.add(layers.Dense(..., kernel_regularizer = regularizers(0.001),...))
在某一层之后添加dropout层:
model.add(layers.Dropout(0.5))
标签:正则 imp layer bsp col span add regular style
原文地址:https://www.cnblogs.com/rising-sun/p/11625963.html