Set L2 regularization factor of layer learnable parameter
sets the L2 regularization factor of the parameter with the name
layer
= setL2Factor(layer
,parameterName
,factor
)parameterName
in layer
to
factor
.
For built-in layers, you can set the L2 regularization factor directly by using
the corresponding property. For example, for a convolution2dLayer
layer, the syntax layer = setL2Factor(layer,'Weights',factor)
is
equivalent to layer.WeightL2Factor = factor
.
getL2Factor
| getLearnRateFactor
| setLearnRateFactor
| trainNetwork
| trainingOptions