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