Set learn rate factor of layer learnable parameter
sets the learn rate factor of the parameter with the name
layerUpdated
= setLearnRateFactor(layer
,parameterName
,factor
)parameterName
in layer
to
factor
.
For built-in layers, you can set the learn rate factor directly by using the
corresponding property. For example, for a convolution2dLayer
layer, the syntax layer =
setLearnRateFactor(layer,'Weights',factor)
is equivalent to
layer.WeightLearnRateFactor = factor
.
sets the learn rate factor of the parameter specified by the path
layerUpdated
= setLearnRateFactor(layer
,parameterPath
,factor
)parameterPath
. Use this syntax when the parameter is in
a dlnetwork
object in a custom layer.
sets the learn rate factor of the parameter with the name
dlnetUpdated
= setLearnRateFactor(dlnet
,layerName
,parameterName
,factor
)parameterName
in the layer with name
layerName
for the specified dlnetwork
object.
sets the learn rate factor of the parameter specifiedby the path
dlnetUpdated
= setLearnRateFactor(dlnet
,parameterPath
,factor
)parameterPath
. Use this syntax when the parameter is in
a nested layer.
getL2Factor
| getLearnRateFactor
| setL2Factor
| trainingOptions
| trainNetwork