setLearnRateFactor
Set learn rate factor of layer learnable parameter
Syntax
Description
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
netUpdated
= setLearnRateFactor(net
,layerName
,parameterName
,factor
)parameterName
in the layer with name
layerName
for the specified dlnetwork
object.
sets the learn rate factor of the parameter specified by the path
netUpdated
= setLearnRateFactor(net
,parameterPath
,factor
)parameterPath
. Use this syntax when the parameter is in
a nested layer.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2017b